From 1a2061079e97a738ec7b8959bfd9a6e6c6997403 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 31 十月 2019 09:59:29 +0800
Subject: [PATCH] 2019.10.31
---
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs
index cb7d3cf..f751770 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs
@@ -131,7 +131,7 @@
//寮�鍚�掕鏃剁嚎绋�
this.StartTimeCountThread(textValue);
- new System.Threading.Thread(async () =>
+ HdlThreadLogic.Current.RunThread(async () =>
{
while (this.IsThreadAction)
{
@@ -145,8 +145,7 @@
//妫�娴嬫悳绱㈠埌鐨勭綉鍏筹紝鐒跺悗娣诲姞鍒扮敾闈㈢殑琛岄噷闈�
await this.CheckZbGatewayAndSetRow();
}
- })
- { IsBackground = true }.Start();
+ });
}
/// <summary>
@@ -158,7 +157,7 @@
//鎼滅储鏃堕棿
this.searchTime = 60;
- new System.Threading.Thread(() =>
+ HdlThreadLogic.Current.RunThread(() =>
{
while (this.IsThreadAction)
{
@@ -187,8 +186,7 @@
btnStop.Text = textValue;
}
});
- })
- { IsBackground = true }.Start();
+ });
}
#endregion
--
Gitblit v1.8.0