黄学彪
2020-05-06 ae7c46bda98a987d170a9b8419fc014564790359
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs
@@ -53,7 +53,7 @@
            btnArea.X = Application.GetRealWidth(46);
            btnArea.TextSize = 12;
            btnArea.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnArea.Text = Common.Room.CurrentRoom.GetRoomNameByDevice(device);
            btnArea.Text = HdlRoomLogic.Current.GetRoomNameByDevice(device);
            this.AddChidren(btnArea);
            //状态
            var btnStatu = new NormalViewControl(200, 49, true);
@@ -81,7 +81,7 @@
            btnOnline.X = this.Width - Application.GetRealWidth(200 + 46);
            btnOnline.Y = btnDeviceName.Y;
            btnOnline.TextAlignment = TextAlignment.CenterRight;
            this.SetOnlineStatu(device.IsOnline == 1);
            this.SetOnlineStatu(Common.LocalDevice.Current.CheckDeviceIsOnline(device));
            this.AddChidren(btnOnline);
        }