xm
2020-04-16 6fa9d69da922c8049f5acfcbb9ce9fd26811024c
ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceColorLightCardControl.cs
@@ -29,7 +29,7 @@
            {
                bool setStatu = !btnSwitch.IsSelected;
                //变更卡片状态
                this.SetCardStatu(setStatu);
                this.SetCardOpenStatu(setStatu);
                //检测是否获取网关反馈的结果,如果网关没有回复,则会弹出消息
                this.StartCheckResponeResult(!setStatu);
@@ -62,12 +62,10 @@
            {
                Common.CommonPage.Instance.IsDrawerLockMode = true;
                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;
                //彩灯,调光器类型的深度卡片界面
                var form = new ControlForm.DeviceColorLightDetailCardForm();
                form.AddForm(i_device, UserCenter.HdlRoomLogic.Current.CurrentRoom, 965, 1316);
                form.FormCloseEvent += this.CardDetailInfoBackEvent;
            };
        }
@@ -92,10 +90,13 @@
        /// <summary>
        /// 发送获取状态命令
        /// </summary>
        /// <param name="i_device"></param>
        public override void SendStatuComand(CommonDevice i_device)
        public override void SendStatuComand()
        {
            Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(i_device);
            //检测能否发送获取状态命令
            if (this.CheckCanSendStatuComand() == true)
            {
                Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(this.device);
            }
        }
        #endregion