| | |
| | | //深度卡片信息
|
| | | this.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var lightControl = new Phone.Device.Light.OnOffControl();
|
| | | UserView.HomePage.Instance.AddChidren(lightControl);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | | lightControl.IsDrawerLockMode = true;
|
| | | lightControl.Show(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom);
|
| | | lightControl.action += this.CardDetailInfoBackEvent;
|
| | | Common.CommonPage.Instance.IsDrawerLockMode = true;
|
| | |
|
| | | int backHeight = 0;
|
| | | if (i_device.DfunctionType == DeviceFunctionType.A开关)
|
| | | {
|
| | | backHeight = 1290;
|
| | | }
|
| | | else if (i_device.DfunctionType == DeviceFunctionType.A插座)
|
| | | {
|
| | | backHeight = 1290;
|
| | | }
|
| | | else
|
| | | {
|
| | | backHeight = 1316;
|
| | | }
|
| | |
|
| | | //继电器类型的深度卡片界面(含空气开关)
|
| | | var form = new ControlForm.DeviceRelayDetailCardForm();
|
| | | form.AddForm(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom, 965, backHeight);
|
| | | form.FormCloseEvent += this.CardDetailInfoBackEvent;
|
| | | };
|
| | | }
|
| | |
|