瀏覽代碼

started working on receive loop

Mauro de Lyon 10 年之前
父節點
當前提交
c6283b0674
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      Proftaak Remote Healthcare/FietsClientV2/DoctorModel.cs

+ 18 - 0
Proftaak Remote Healthcare/FietsClientV2/DoctorModel.cs

@@ -16,9 +16,27 @@ namespace FietsClient
         public DoctorForm doctorform { get; set; }
         public static DoctorModel doctorModel { get { return _doctorModel ?? (_doctorModel = new DoctorModel()); } }
         public TcpConnection tcpConnection { private get; set; }
+        private Thread receiveDataLoop;
 
         public DoctorModel()
         {
+
+        }
+
+        public void startAskingData()
+        {
+            receiveDataLoop = new Thread(() => receiveDataThreadLoop());
+            receiveDataLoop.Start();
+        }
+
+        private void receiveDataThreadLoop()
+        {
+            while (true)
+            {
+                Thread.Sleep(1000);
+                //receive data and display in through handle bike data
+                tcpConnection.
+            }
         }
 
         //display values