| | |
| | |
|
| | | //设备名字
|
| | | this.btnDeviceName = new NormalViewControl(600, 60, true);
|
| | | if (this.device.Type == DeviceType.WindowCoveringDevice)
|
| | | if (this.device.Type == DeviceType.WindowCoveringDevice || this.device.Type == DeviceType.Airer)
|
| | | {
|
| | | //窗帘因为右边有三个按钮,所以需要所有名字的宽度
|
| | | //窗帘因为右边有三个按钮,所以需要缩小名字的宽度
|
| | | this.btnDeviceName.Width = Application.GetRealWidth(360);
|
| | | }
|
| | | btnDeviceName.X = Application.GetRealWidth(181);
|
| | |
| | | //回调控件被移除的事件
|
| | | this.RowNeedRemoveEvent?.Invoke();
|
| | | this.RemoveFromParent();
|
| | | //上传空间区域信息
|
| | | HdlRoomLogic.Current.SetRoomInfoToGateway();
|
| | | };
|
| | | };
|
| | | }
|