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/DeviceListMainForm.cs |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
index 2d698b8..f86a187 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
@@ -95,12 +95,11 @@
             //鍒濆鍖栨悳绱㈡帶浠�
             this.InitSearchControl();
 
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 //鍒濆鍖栬澶囧垪琛ㄦ帶浠�
                 this.InitDeviceListControl();
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         #endregion
@@ -416,7 +415,7 @@
             }
 
             string selectGwId = HdlGatewayLogic.Current.GetGatewayId(GatewayResourse.NowSelectGateway);
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 ZbGateway zbGateway = HdlGatewayLogic.Current.GetLocalGateway(selectGwId);
                 if (zbGateway == null)
@@ -436,8 +435,7 @@
                         this.StartDeviceListControlThread(online);
                     }
                 });
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         /// <summary>
@@ -519,13 +517,12 @@
                 return;
             }
             string gwId = HdlGatewayLogic.Current.GetGatewayId(GatewayResourse.NowSelectGateway);
-            new System.Threading.Thread(async () =>
+            HdlThreadLogic.Current.RunThread(async () =>
             {
                 //杩欓噷涓昏鍙槸鑾峰彇鍦ㄧ嚎鐘舵��
                 var zbway = HdlGatewayLogic.Current.GetLocalGateway(gwId);
                 var result = await Common.LocalDevice.Current.GetDeviceListFromGateway(zbway, this.ReceiveDeviceStatuPush);
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         /// <summary>
@@ -604,7 +601,7 @@
         /// <param name="list">ota璁惧</param>
         private void CheckDeviceNewVersion(List<OTADevice> list)
         {
-            new System.Threading.Thread(async () =>
+            HdlThreadLogic.Current.RunThread(async () =>
             {
                 await System.Threading.Tasks.Task.Delay(2000);
                 foreach (var ota in list)
@@ -644,8 +641,7 @@
                         }
                     });
                 }
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         #endregion
@@ -762,11 +758,11 @@
         /// <summary>
         /// 鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠�
         /// </summary>
-        public override void FormActionAgainEvent()
+        public override int FormActionAgainEvent()
         {
             if (this.nowActionDeviceMac == null)
             {
-                return;
+                return 1;
             }
             var rowInfo = this.dicRowInfo[nowActionDeviceMac];
             //妫�娴嬭繖涓澶囨槸鍚﹁鍒犻櫎
@@ -795,6 +791,8 @@
             this.nowActionDeviceMac = null;
             //缃戝叧鎺т欢鍒锋柊
             this.gatewayViewRow.RefreshControl();
+
+            return 1;
         }
 
         #endregion

--
Gitblit v1.8.0