黄学彪
2020-04-26 18a7f9f40e5fab3bee5d4ac3d8fd0273dea052d6
ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceColorLightCardControl.cs
@@ -1,4 +1,5 @@
using System;
using Shared.Phone.UserCenter;
using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
@@ -60,12 +61,12 @@
            //深度卡片信息
            this.ButtonClickEvent += (sender, e) =>
            {
                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;
                Common.CommonPage.Instance.IsDrawerLockMode = true;
                //彩灯,调光器类型的深度卡片界面
                var form = new ControlForm.DeviceColorLightDetailCardForm();
                form.AddForm(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom, 965, 1316);
                form.FormCloseEvent += this.CardDetailInfoBackEvent;
            };
        }
@@ -95,7 +96,7 @@
            //检测能否发送获取状态命令
            if (this.CheckCanSendStatuComand() == true)
            {
                Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(this.device);
               HdlDeviceAttributeLogic.Current.SendDimmableLightStatuComand(this.device);
            }
        }