From 2bf5ec775cb57d8015bee58c745a1e48081ff1b1 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 15 十月 2019 11:06:05 +0800 Subject: [PATCH] 首次合并了全部的代码 --- ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlGatewayListBackUpForm.cs | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlGatewayListBackUpForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlGatewayListBackUpForm.cs index 43dcb15..8c39464 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlGatewayListBackUpForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlGatewayListBackUpForm.cs @@ -62,7 +62,7 @@ //璁剧疆鎺ュ彈鍦ㄧ嚎鐘舵�佹帹閫� this.AddGatewayOnlinePush(); - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { List<ZbGateway> listway = HdlGatewayLogic.Current.GetAllLocalGateway(); if (listway.Count == 0) @@ -83,8 +83,7 @@ //寮�鍚綉鍏冲湪绾跨洃娴嬬殑绾跨▼ this.StartGatewayOnlieCheckThread(listway); }); - }) - { IsBackground = true }.Start(); + }); } #endregion @@ -157,7 +156,7 @@ /// <param name="listway"></param> private void StartGatewayOnlieCheckThread(List<ZbGateway> listway) { - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { System.Threading.Thread.Sleep(300); //鍒锋柊缃戝叧鍦ㄧ嚎鐘舵�� @@ -173,8 +172,7 @@ } //缃戝叧鏂扮増鏈娴� this.CheckGatewayNewVersion(listway); - }) - { IsBackground = true }.Start(); + }); } /// <summary> -- Gitblit v1.8.0