| | |
| | | //深度卡片信息
|
| | | this.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var dimmableLightControl = new Phone.Device.Light.DimmableLightControl();
|
| | | UserView.HomePage.Instance.AddChidren(dimmableLightControl);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | | UserView.HomePage.Instance.ScrollEnabled = false;
|
| | | dimmableLightControl.Show(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom);
|
| | | dimmableLightControl.action += this.CardDetailInfoBackEvent;
|
| | | //彩灯,调光器类型的深度卡片界面
|
| | | var form = new MainPage.ControlForm.DeviceColorLightDetailCardForm();
|
| | | form.AddForm(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom, 965, 1316);
|
| | | form.FormCloseEvent += this.CardDetailInfoBackEvent;
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | //检测能否发送获取状态命令
|
| | | if (this.CheckCanSendStatuComand() == true)
|
| | | {
|
| | | Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendLightStatuComand(this.device);
|
| | | Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(this.device);
|
| | | }
|
| | | }
|
| | |
|