黄学彪
2020-04-02 9904031f5291daaf56985146bb671f25e18ebbdf
ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceRelayRowControl.cs
@@ -68,11 +68,24 @@
            //深度卡片信息
            this.frameTable.ButtonClickEvent += (sender, e) =>
            {
                var lightControl = new Phone.Device.Light.OnOffControl();
                UserView.HomePage.Instance.AddChidren(lightControl);
                UserView.HomePage.Instance.PageIndex += 1;
                lightControl.Show(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom);
                lightControl.action += this.CardDetailInfoBackEvent;
                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 MainPage.ControlForm.DeviceRelayDetailCardForm();
                form.AddForm(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom, 965, backHeight);
                form.FormCloseEvent += this.CardDetailInfoBackEvent;
            };
        }