陈嘉乐
2020-05-15 d5b9ff8bf8cc36f5b13c46b66682f5988d3a6f36
ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs
@@ -86,7 +86,7 @@
        {
            var rowInfo = new RowControlInfo();
            var frameTable = new FrameLayoutControl();
            var frameTable = new FrameLayoutStatuControl();
            frameTable.UseClickStatu = false;
            frameTable.Width = Application.GetRealWidth(994);
            frameTable.Height = Application.GetRealHeight(337);
@@ -98,9 +98,9 @@
            var btnIconBack = new FrameLayout();
            btnIconBack.X = Application.GetRealWidth(46);
            btnIconBack.Y = Application.GetRealHeight(43);
            btnIconBack.Height = Application.GetMinRealAverage(112);
            btnIconBack.Width = Application.GetMinRealAverage(112);
            btnIconBack.Radius = (uint)Application.GetMinRealAverage(112) / 2;
            btnIconBack.Height = this.GetPictrueRealSize(112);
            btnIconBack.Width = this.GetPictrueRealSize(112);
            btnIconBack.Radius = (uint)this.GetPictrueRealSize(112) / 2;
            btnIconBack.BackgroundColor = 0xfff5f6fa;
            frameTable.AddChidren(btnIconBack, ChidrenBindMode.NotBind);
            rowInfo.btnIconBack = btnIconBack;
@@ -211,21 +211,13 @@
            {
                for (int i = 0; i < listDevice.Count; i++)
                {
                    if (i != 0 && i % 3 == 0)
                    if (this.Parent == null)
                    {
                        //读取5个后,间隔一段时间
                        System.Threading.Thread.Sleep(200);
                        if (this.Parent == null)
                        {
                            return;
                        }
                        return;
                    }
                    //获取当前室温
                    ((AC)listDevice[i]).ReadLocalTemperature();
                    //获取开关状态(处于某种工作状态,即为打开状态)
                    ((AC)listDevice[i]).ReadSystemMode();
                    //清洗滤网
                    listDevice[i].ReadAttri(Cluster_ID.Thermostat, AttriButeId.FilterCleaningStatus);
                    //读取状态
                    HdlDeviceAttributeLogic.Current.SendThermostatStatuComand(listDevice[i]);
                    System.Threading.Thread.Sleep(200);
                }
            });
        }