黄学彪
2020-09-23 c0ce2f57a4f836ebeb9e7b8b4b5a4407fd78dc86
ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceCurtainDetailCardForm.cs
@@ -366,19 +366,20 @@
        /// <param name="comand"></param>
        private void SetCurtainCommand(int comand)
        {
            //2020.07.20变更:放开限制,不再等待网关回复,也能点击按钮
            //在没有接收到反馈之前,不能再点击
            this.btnClose.CanClick = false;
            this.btnOpen.CanClick = false;
            this.btnStop.CanClick = false;
            //this.btnClose.CanClick = false;
            //this.btnOpen.CanClick = false;
            //this.btnStop.CanClick = false;
            //检测是否获取网关反馈的结果,如果网关没有回复,则会弹出消息
            this.StartCheckResponeResult(new List<ButtonBase>(), (result) =>
            {
                //时间结束,可以再次点击
                this.btnClose.CanClick = true;
                this.btnOpen.CanClick = true;
                this.btnStop.CanClick = true;
            });
            //this.StartCheckResponeResult(new List<ButtonBase>(), (result) =>
            //{
            //    //时间结束,可以再次点击
            //    this.btnClose.CanClick = true;
            //    this.btnOpen.CanClick = true;
            //    this.btnStop.CanClick = true;
            //});
            //发送命令
            ((Rollershade)device).CurtainUpDownStopControl(comand);
        }
@@ -395,11 +396,7 @@
        /// <returns></returns>
        public override bool CheckResponeResultStatu(ReceiveComandDiv comandDiv, CommonDevice report)
        {
            if (comandDiv == ReceiveComandDiv.A节点控制反馈)
            {
                return true;
            }
            else if (comandDiv == ReceiveComandDiv.A设备属性上报)
            if (comandDiv == ReceiveComandDiv.A设备属性上报)
            {
                HdlThreadLogic.Current.RunMain(() =>
                {
@@ -418,6 +415,7 @@
                        }
                    }
                });
                return true;
            }
            return false;
        }