From 1f5d37fbca31293eff043f4a051be6f6876cea09 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 27 六月 2022 09:12:19 +0800
Subject: [PATCH] 跳动优化

---
 HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/CacControlPage.cs |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/CacControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/CacControlPage.cs
index 7683c79..0aa3098 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/CacControlPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/CacControlPage.cs
@@ -126,6 +126,12 @@
 
 
             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,
@@ -154,7 +160,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()
             {
@@ -165,7 +171,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);
@@ -251,7 +257,7 @@
 
             Button btnDataText = new Button()
             {
-                X = Application.GetRealWidth(215),
+                X = Application.GetRealWidth(212),
                 Y = btnWindSpeed.Bottom,
                 Width = Application.GetRealWidth(90),
                 Height = Application.GetRealHeight(20),
@@ -296,10 +302,10 @@
             modeChangeView = new FrameLayout()
             {
                 X = Application.GetRealWidth(30),
-                Y = Application.GetRealHeight(128),
+                Y = Application.GetRealHeight(128 + 135),
                 Width = Application.GetRealWidth(160),
-                Height = Application.GetRealHeight(287),
-                BackgroundImagePath = "FunctionIcon/AC/DivBg1.png",
+                Height = Application.GetRealHeight(152),
+                BackgroundImagePath = "Public/dialogBg2.png",
             };
             dialogView.AddChidren(modeChangeView);
 
@@ -603,7 +609,7 @@
                                         + Language.StringByID(StringId.Humidity) + Convert.ToInt32(Convert.ToDouble(device.GetAttrState("room_humidity").Replace(", ", "."))) + "%";
                     btnMode.UnSelectedImagePath = acFunction.GetModeIconPath(device.GetAttrState(FunctionAttributeKey.Mode));
                     temp = Convert.ToInt32(Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")));
-
+                  
 
                     arcBar.Progress = temp;
                     btnTemp.Text = temp.ToString();

--
Gitblit v1.8.0