From cbc156bc38d8b8eae7aef60cb186ab2b52fa701f Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 16 七月 2024 13:59:56 +0800 Subject: [PATCH] 增加全部挂断 --- HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs index 56f5bde..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() { @@ -166,7 +168,7 @@ btnCurtainStop.MouseUpEventHandler = (sender, e) => { - if (!function.online) + if (!function.isOnline()) { new Tip() { @@ -194,7 +196,7 @@ btnCurtainOpen.MouseUpEventHandler = (sender, e) => { - if (!function.online) + if (!function.isOnline()) { new Tip() { @@ -221,7 +223,7 @@ CurtainAnimation(100); }; - if (function.online) + if (function.isOnline()) { btnCurtainStop.MouseDownEventHandler = (sender, e) => { -- Gitblit v1.8.0