From 1802b849f0dadc81644fb0a706d6fb45efdf2a20 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期三, 24 十一月 2021 16:13:06 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/newBranch1' into WJC --- HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs index 25b967f..775b792 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs @@ -26,10 +26,14 @@ //bodyView.btnCurtainClose.IsSelected = percent == 0; try { - if (!bodyView.onCurtainAnimation) - { - bodyView.CurtainAnimation(Convert.ToInt32(updateTemp.GetAttrState(FunctionAttributeKey.Percent))); - } + var progress = Convert.ToInt32(updateTemp.GetAttrState(FunctionAttributeKey.Percent)); + bodyView.curtainSeekBar.Progress = progress; + bodyView.btnProgress.Text = progress + "%"; + + //if (!bodyView.onCurtainAnimation) + //{ + // bodyView.CurtainAnimation(Convert.ToInt32(updateTemp.GetAttrState(FunctionAttributeKey.Percent))); + //} } catch { } } @@ -148,7 +152,7 @@ System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString()); DriverLayer.Control.Ins.SendWriteCommand(function, d); - CurtainAnimation(0); + //CurtainAnimation(100); }; btnCurtainStop.MouseUpEventHandler = (sender, e) => @@ -183,7 +187,7 @@ System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString()); DriverLayer.Control.Ins.SendWriteCommand(function, d); - CurtainAnimation(100); + //CurtainAnimation(0); }; //btnMinusSignIcon.MouseUpEventHandler = (sender, e) => -- Gitblit v1.8.0