From e06be53dff56744de8db2a2aec136d494cc187bf Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 07 十一月 2023 16:47:02 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' of http://59.41.255.150:6688/r/~wxr/OnPro into Dev-Branch --- HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs index 87044d5..39f76e8 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs @@ -31,7 +31,9 @@ { if (!bodyView.onCurtainAnimation) { - bodyView.CurtainAnimation(Convert.ToInt32(updateTemp.GetAttrState(FunctionAttributeKey.Percent))); + bodyView.btnProgress.Text = updateTemp.GetAttrState(FunctionAttributeKey.Percent) + "%"; + bodyView.curtainSeekBar.Progress = Convert.ToInt32(updateTemp.GetAttrState(FunctionAttributeKey.Percent)); + //bodyView.CurtainAnimation(Convert.ToInt32(updateTemp.GetAttrState(FunctionAttributeKey.Percent))); } } catch { } @@ -137,7 +139,7 @@ { btnCurtainClose.MouseUpEventHandler = (sender, e) => { - if (!function.online) + if (!function.isOnline()) { new Tip() { @@ -145,6 +147,7 @@ Text = Language.StringByID(StringId.DeviceOfflineCannotOption), Direction = AMPopTipDirection.None, }.Show(MainPage.BaseView); + return; } new System.Threading.Thread(() => { @@ -165,7 +168,7 @@ btnCurtainStop.MouseUpEventHandler = (sender, e) => { - if (!function.online) + if (!function.isOnline()) { new Tip() { @@ -173,6 +176,7 @@ Text = Language.StringByID(StringId.DeviceOfflineCannotOption), Direction = AMPopTipDirection.None, }.Show(MainPage.BaseView); + return; } onCurtainAnimation = false; new System.Threading.Thread(() => @@ -192,7 +196,7 @@ btnCurtainOpen.MouseUpEventHandler = (sender, e) => { - if (!function.online) + if (!function.isOnline()) { new Tip() { @@ -200,6 +204,7 @@ Text = Language.StringByID(StringId.DeviceOfflineCannotOption), Direction = AMPopTipDirection.None, }.Show(MainPage.BaseView); + return; } new System.Threading.Thread(() => { @@ -218,7 +223,7 @@ CurtainAnimation(100); }; - if (!function.online) + if (function.isOnline()) { btnCurtainStop.MouseDownEventHandler = (sender, e) => { -- Gitblit v1.8.0