From ecba45c93391066bc30c7bd602c3a7683fbb99a7 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 31 七月 2020 10:56:12 +0800 Subject: [PATCH] 临时备份 --- ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs | 41 ----------------------------------------- 1 files changed, 0 insertions(+), 41 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs b/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs index 2fe6c56..d30d6cd 100755 --- a/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs @@ -78,8 +78,6 @@ this.AddNormalDeviceReportEvent(); //娣诲姞浼犳劅鍣ㄧ姸鎬佷笂鎶ヤ簨浠� this.AddSensorDeviceReportEvent(); - //寮�鍚紶鎰熷櫒鐘舵�佽繕鍘熺殑绾跨▼ - this.StartRecoverSenorStatuThread(); } /// <summary> @@ -462,7 +460,6 @@ { //鍏堟竻绌� listView.RemoveAll(); - this.dicDeviceRowControl = new Dictionary<string, Controls.DeviceRowCommon>(); var listDevice = new List<CommonDevice>(); for (int i = 0; i < rowInfo.listDeviceKeys.Count; i++) @@ -886,44 +883,6 @@ } }, ShowErrorMode.NO); - }); - } - - #endregion - - #region 鈻� 浼犳劅鍣ㄧ姸鎬佽繕鍘焈____________________ - - /// <summary> - /// 寮�鍚紶鎰熷櫒鐘舵�佽繕鍘熺殑绾跨▼ - /// </summary> - private void StartRecoverSenorStatuThread() - { - HdlThreadLogic.Current.RunThread(() => - { - while (this.Parent != null) - { - try - { - var dicControl = this.dicDeviceRowControl; - foreach (var contr in dicControl.Values) - { - //濡傛灉鏄紶鎰熷櫒,鍒欏埛鏂扮姸鎬� - if (contr.device.Type == DeviceType.IASZone && contr.Parent != null - && ((IASZone)contr.device).iASInfo == null) - { - HdlThreadLogic.Current.RunMain(() => - { - //璁惧鐘舵�佸繀椤诲埛鏂� - string statuText = HdlDeviceOtherLogic.Current.GetDeviceStatu(contr.device); - contr.SetDeviceStatuText(statuText); - - }, ShowErrorMode.NO); - } - } - System.Threading.Thread.Sleep(8000); - } - catch { System.Threading.Thread.Sleep(3000); } - } }); } -- Gitblit v1.8.0