From 2ed75b8b337048e5d75e6d9ec8307633134f02fd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 10 十月 2019 11:33:04 +0800
Subject: [PATCH] 个人中心添加楼层和创建房间,实装二级验证

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs |   25 ++++++++++---------------
 1 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
index 5cde688..6c3006a 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
@@ -130,7 +130,7 @@
             btnProgressView.Text = "0%";
             frameProgress.AddChidren(btnProgressView);
 
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 //钃濇墠鍒氳鏈夋椂鍊欑綉鍏充細鏀朵笉鍒板叆缃戠殑鍛戒护,鎵�浠ュ彂涓夋
                 for (int i = 0; i < 3; i++)
@@ -143,8 +143,7 @@
                     GatewayResourse.NowSelectGateway.AddNewDeviceToGateway(255);
                     System.Threading.Thread.Sleep(1000);
                 }
-            })
-            { IsBackground = true }.Start();
+            });
 
             //娣诲姞鐩戣璁惧鏂颁笂鎶ョ殑浜嬩欢
             GatewayResourse.NowSelectGateway.GwResDataAction += this.AdjustGatewayResultData;
@@ -251,7 +250,7 @@
             }
             this.isDeviceThreadStart = true;
 
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 while (this.waitDeviceTimeOut >= 0)
                 {
@@ -279,8 +278,7 @@
                         break;
                     }
                 });
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         /// <summary>
@@ -331,7 +329,7 @@
             btnRound.Y = Application.GetMinRealAverage(475);
             bodyFrameLayout.AddChidren(btnRound);
 
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 int index = 1;
                 while (this.Parent != null)
@@ -350,8 +348,7 @@
                         }
                     });
                 }
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         #endregion
@@ -476,7 +473,7 @@
                 return;
             }
             this.isTopicTimeOutThreadStart = true;
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 while (this.Parent != null && this.topTimeOut >= 0)
                 {
@@ -494,8 +491,7 @@
                         this.CloseForm();
                     });
                 }
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         #endregion
@@ -511,13 +507,12 @@
             //鍋滄鎺ユ敹
             GatewayResourse.NowSelectGateway.GwResDataAction -= this.AdjustGatewayResultData;
 
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 System.Threading.Thread.Sleep(1200);
                 //鍏抽棴鍏ョ綉妯″紡
                 GatewayResourse.NowSelectGateway.AddNewDeviceToGateway(0);
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         #endregion

--
Gitblit v1.8.0