From ef3f8a51d69b581bfa06f82ee0851dafda4ffc3c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 13 六月 2022 11:23:33 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wjc' into Dev-Branch --- HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs index bdc7f95..6a45090 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs @@ -118,7 +118,15 @@ /// </summary> private void InitFrameWhiteContent1() { + //鑾峰彇娓╁害鍊� temp = (int)Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")); + if (temp <= 0) + { + //榛樿鍊兼敼鎴�16,2022骞�06鏈�10鏃�10:03:19 鎴愮敨瑕佹眰鐨� + temp = 16; + device.SetAttrState(FunctionAttributeKey.SetTemp, temp.ToString()); + } + arcBar = new DiyArcSeekBar() { Gravity = Gravity.CenterHorizontal, @@ -147,7 +155,7 @@ arcBar.IsOffline = device.GetAttrState(FunctionAttributeKey.OnOff) == "off"; arcBar.MinValue = device.GetAttribute(FunctionAttributeKey.SetTemp).min; arcBar.MaxValue = device.GetAttribute(FunctionAttributeKey.SetTemp).max; - arcBar.Progress = (int)Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")); + arcBar.Progress = temp; btnTemp = new Button() { @@ -158,7 +166,7 @@ TextColor = CSS_Color.FirstLevelTitleColor, TextSize = 50, IsBold = true, - Text = Convert.ToDouble( device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")).ToString(), + Text = Convert.ToDouble(temp).ToString(), TextAlignment = TextAlignment.Center, }; FrameWhiteCentet1.AddChidren(btnTemp); @@ -1049,7 +1057,7 @@ btnSwing.UnSelectedImagePath = acFunction.GetSwingIconPath(device.GetAttrState(FunctionAttributeKey.Swing), false); btnWindSpeed.UnSelectedImagePath = acFunction.GetFanIconPath(device.GetAttrState(FunctionAttributeKey.FanSpeed), false); temp = Convert.ToInt32(Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", "."))); - + arcBar.Progress = temp; btnTemp.Text = temp.ToString() ; -- Gitblit v1.8.0