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/Safety/SafetyManagementMainForm.cs | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs index 55ccfe5..2c46711 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs @@ -326,7 +326,7 @@ listView.Height = frameLayoutDraw.Height; frameLayoutDraw.AddChidren(listView); - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { //鑾峰彇瀹夐槻鐨勫叏閮ㄤ紶鎰熷櫒璁惧鐨勪俊鎭� var dicDevice = HdlSafeguardLogic.Current.GetAllSensorDeviceInfo(); @@ -363,8 +363,7 @@ } }); } - }) - { IsBackground = true }.Start(); + }); } /// <summary> @@ -454,7 +453,7 @@ oldGetOnlineTime = DateTime.Now; //浠庤澶囧垪琛ㄤ腑鑾峰彇鍦ㄧ嚎鐘舵�� - new System.Threading.Thread(async () => + HdlThreadLogic.Current.RunThread(async () => { //棣栧厛鑾峰彇杩欎簺浼犳劅鍣ㄦ墍鍦ㄧ殑缃戝叧 var listWay = new List<ZbGateway>(); @@ -477,8 +476,7 @@ } await Common.LocalDevice.Current.GetDeviceListFromGateway(zbway, this.ReceiveDeviceStatuPush, ShowErrorMode.NO); } - }) - { IsBackground = true }.Start(); + }); } /// <summary> @@ -557,7 +555,7 @@ listView.Height = frameLayoutDraw.Height; frameLayoutDraw.AddChidren(listView); - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { var dicAlarm = HdlAlarmsLogic.Current.GetSafeguardAlarmInfo(); var dicInfo = new Dictionary<string, Dictionary<int, List<SafeguardAlarmInfo>>>(); @@ -630,8 +628,7 @@ //寮�鍚紶鎰熷櫒鎶ヨ鐩戣 this.StartCheckDeviceAlarm(); }); - }) - { IsBackground = true }.Start(); + }); } /// <summary> @@ -711,7 +708,7 @@ /// <summary> /// 鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠� /// </summary> - public override void FormActionAgainEvent() + public override int FormActionAgainEvent() { //璁剧疆甯冮槻鎸夐挳鐨勫彲瑙嗙姸鎬� garrisonControl?.SetButtonVisible(); @@ -726,6 +723,7 @@ //璁剧疆浼犳劅鍣ㄦ暟鎹埌鐢婚潰 this.SetSensorDataToForm(); } + return 1; } #endregion -- Gitblit v1.8.0