| | |
| | | {
|
| | | bool setStatu = !btnSwitch.IsSelected;
|
| | | //变更卡片状态
|
| | | this.SetCardStatu(setStatu);
|
| | | this.SetCardOpenStatu(setStatu);
|
| | | //检测是否获取网关反馈的结果,如果网关没有回复,则会弹出消息
|
| | | this.StartCheckResponeResult(!setStatu);
|
| | |
|
| | |
| | | {
|
| | | Common.CommonPage.Instance.IsDrawerLockMode = true;
|
| | |
|
| | | var dimmableLightControl = new Phone.Device.Light.DimmableLightControl();
|
| | | UserView.HomePage.Instance.AddChidren(dimmableLightControl);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | | dimmableLightControl.IsDrawerLockMode = true;
|
| | | dimmableLightControl.Show(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom);
|
| | | dimmableLightControl.action += this.CardDetailInfoBackEvent;
|
| | | //彩灯,调光器类型的深度卡片界面
|
| | | var form = new ControlForm.DeviceColorLightDetailCardForm();
|
| | | form.AddForm(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom, 965, 1316);
|
| | | form.FormCloseEvent += this.CardDetailInfoBackEvent;
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | /// <summary>
|
| | | /// 发送获取状态命令
|
| | | /// </summary>
|
| | | /// <param name="i_device"></param>
|
| | | public override void SendStatuComand(CommonDevice i_device)
|
| | | public override void SendStatuComand()
|
| | | {
|
| | | Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(i_device);
|
| | | //检测能否发送获取状态命令
|
| | | if (this.CheckCanSendStatuComand() == true)
|
| | | {
|
| | | Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(this.device);
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|