From 2e7e5f9af5b32cfe1fc3c6ba40bf7eb984bbd0a4 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 11 五月 2020 17:52:06 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs index 8fc210c..0d6511b 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs @@ -35,14 +35,6 @@ #region 鈻� 鍒濆鍖朹____________________________ /// <summary> - /// 鍒嗙被鐣岄潰鐨勭獥甯樿澶囪鎺т欢 - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceCurtainRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> @@ -61,6 +53,13 @@ btnOpen.X = Application.GetRealWidth(625) - btnOpen.XOffset; btnOpen.ButtonClickEvent += (sender, e) => { + //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鐩存帴淇敼缂撳瓨 + if (Common.Config.Instance.Home.IsVirtually == true) + { + ((Rollershade)i_device).WcdCurrentPositionLiftPercentage = 100; + base.RefreshControlInfo(i_device); + return; + } ((Rollershade)i_device).CurtainUpDownStopControl(0); }; @@ -74,7 +73,11 @@ btnStop.X = Application.GetRealWidth(769) - btnOpen.XOffset; btnStop.ButtonClickEvent += (sender, e) => { - ((Rollershade)i_device).CurtainUpDownStopControl(2); + //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,姝ゅ姛鑳芥棤鏁� + if (Common.Config.Instance.Home.IsVirtually == false) + { + ((Rollershade)i_device).CurtainUpDownStopControl(2); + } }; //鍏抽棴 @@ -85,6 +88,13 @@ btnClose.X = Application.GetRealWidth(896) - btnOpen.XOffset; btnClose.ButtonClickEvent += (sender, e) => { + //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鐩存帴淇敼缂撳瓨 + if (Common.Config.Instance.Home.IsVirtually == true) + { + ((Rollershade)i_device).WcdCurrentPositionLiftPercentage = 0; + base.RefreshControlInfo(i_device); + return; + } ((Rollershade)i_device).CurtainUpDownStopControl(1); }; @@ -134,6 +144,11 @@ /// </summary> public override void SendStatuComand() { + //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,姝ゅ姛鑳芥棤鏁� + if (Common.Config.Instance.Home.IsVirtually == true) + { + return; + } //妫�娴嬭兘鍚﹀彂閫佽幏鍙栫姸鎬佸懡浠� if (this.CheckCanSendStatuComand() == true) { -- Gitblit v1.8.0