From b78a4d0ca90416d37fcbaf5e54b00f7eaab53919 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 14 十月 2019 17:03:58 +0800
Subject: [PATCH] 2019-10-14-2
---
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