| | |
| | | //打开
|
| | | this.SetDeviceStatuText(Language.StringByID(R.MyInternationalizationString.uOpen1));
|
| | | i_device.SwitchControl(1);
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //获取灯光亮度
|
| | | System.Threading.Thread.Sleep(300);
|
| | | HdlDeviceAttributeLogic.Current.SendLevelStatuComand(i_device);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | Common.CommonPage.Instance.IsDrawerLockMode = true;
|
| | |
|
| | | var form = new ControlForm.DeviceColorTemperatureLightDetailCardForm();
|
| | | form.RowOrCardControl = this;
|
| | | form.AddForm(i_device, this.nowSelectRoom, 965, 1466);
|
| | | form.FormCloseEvent += this.CardDetailInfoBackEvent;
|
| | | if (Common.LocalDevice.Current.IsMiniLight(this.device) == false)
|
| | | {
|
| | | var form = new ControlForm.DeviceColorTemperatureLightDetailCardForm();
|
| | | form.RowOrCardControl = this;
|
| | | form.AddForm(i_device, this.nowSelectRoom, 965, 1466);
|
| | | form.FormCloseEvent += this.CardDetailInfoBackEvent;
|
| | | }
|
| | | else
|
| | | {
|
| | | //mini夜灯
|
| | | var form = new ControlForm.DeviceMiniLightDetailCardForm();
|
| | | form.RowOrCardControl = this;
|
| | | form.AddForm(i_device, this.nowSelectRoom, 965, 1466);
|
| | | form.FormCloseEvent += this.CardDetailInfoBackEvent;
|
| | | }
|
| | | };
|
| | | }
|
| | |
|