| | |
| | |
|
| | | //设备名字
|
| | | 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();
|
| | | };
|
| | | };
|
| | | }
|
| | |
| | | //等待网关回复后会重新刷新,不然一直是关闭状态
|
| | | isOpen = false;
|
| | | }
|
| | | //如果是传感器类,则默认是关的效果
|
| | | if (this.device.Type == DeviceType.PMSensor || this.device.Type == DeviceType.IASZone
|
| | | || this.device.Type == DeviceType.TemperatureSensor)
|
| | | {
|
| | | isOpen = false;
|
| | | }
|
| | |
|
| | | this.SetRowOpenStatu(isOpen);
|
| | | }
|
| | |
|
| | |
| | | this.ResponeResult = 1;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 接收网关回复的状态(true:已经接收到网关的回复 false:还没有接收到网关回复)
|
| | | /// </summary>
|
| | | /// <returns></returns>
|
| | | public bool ReceiveResponeResultStatu()
|
| | | {
|
| | | return this.ResponeResult == 1;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 显示低电量_________________________
|
| | |
| | | /// <summary>
|
| | | /// 切换卡片状态特效
|
| | | /// </summary>
|
| | | private void SwitchRowStatuAppeal(bool isOpen)
|
| | | public void SwitchRowStatuAppeal(bool isOpen)
|
| | | {
|
| | | if (this.btnDeviceName.IsSelected == isOpen)
|
| | | {
|