| | |
| | | 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);
|
| | |
| | | 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);
|
| | | }
|
| | |
|