From 1b5ec1190a27ebe66f74ca9513020f805d3ec61c Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 22 十二月 2020 13:54:19 +0800
Subject: [PATCH] 2021221-2

---
 HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
index 7779f67..6a538db 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
@@ -24,13 +24,13 @@
                         return;
                     }
                     updataTime = DateTime.Now;
-                    bodyView.arcBar.ProgressBarColor = bodyView.aC.trait_on_off.curValue.ToString() == "on" ? CSS_Color.MainColor : CSS_Color.PromptingColor2;
+                    bodyView.arcBar.IsOffline = bodyView.aC.trait_on_off.curValue.ToString() != "on";
                     bodyView.btnTemp.Text = uAc.trait_temp.curValue.ToString();
                     bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(uAc.trait_IndoorTemp.curValue)) + "掳C";
                     bodyView.btnMode.UnSelectedImagePath = uAc.curModeImage;
                     bodyView.btnWindSpeed.UnSelectedImagePath = uAc.curFanImage;
                     bodyView.btnSwitch.IsSelected = uAc.trait_on_off.curValue.ToString() == "on";
-                    if (uAc.refreshTime.AddMilliseconds(1000) < DateTime.Now)
+                    if (uAc.refreshTime.AddMilliseconds(500) < DateTime.Now)
                     {
                         bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue));
                     }
@@ -77,6 +77,10 @@
         {
             btnMinus.MouseUpEventHandler = (sender, e) =>
             {
+                if (aC.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
                 var temp = Convert.ToInt32(aC.trait_temp.curValue);
                 if (temp < 17)
                 {
@@ -93,8 +97,12 @@
             };
             btnPlus.MouseUpEventHandler = (sender, e) =>
             {
+                if (aC.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
                 var temp = Convert.ToInt32(aC.trait_temp.curValue);
-                if (temp > 37)
+                if (temp > 31)
                 {
                     return;
                 }
@@ -112,7 +120,7 @@
            {
                aC.trait_temp.curValue = arcBar.Progress.ToString();
                btnTemp.Text = aC.trait_temp.curValue.ToString();
-                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
+               System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add(FunctionAttributeKey.SetTemp, aC.trait_temp.curValue.ToString());
                Control.Ins.SendWriteCommand(aC, d);
            };
@@ -129,10 +137,18 @@
         {
             btnMode.MouseUpEventHandler = (sender, e) =>
             {
+                if (aC.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
                 LoadDiv_ChangeModeView();
             };
             btnWindSpeed.MouseUpEventHandler = (sender, e) =>
             {
+                if (aC.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
                 LoadDiv_ChangeFanView();
             };
 

--
Gitblit v1.8.0