黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
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