From f718d23a262a5a8e1241fdeaeb4153399f95e79d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 21 四月 2020 09:19:05 +0800
Subject: [PATCH] 20200421

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

diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
index eb3cb6f..f8a9d86 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
@@ -11,19 +11,23 @@
         {
             try
             {
+                
                 Application.RunOnMainThread(() =>
                 {
                     if (bodyView == null)
                     {
                         return;
                     }
-                    bodyView.arcBar.Progress = uAc.curTemp;
                     bodyView.arcBar.ProgressBarColor = bodyView.aC.on_off == "on" ? CSS_Color.MainColor : CSS_Color.PromptingColor2;
                     bodyView.btnTemp.Text = uAc.curTemp.ToString();
                     bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + uAc.indoorTemp + "掳C";
                     bodyView.btnMode.UnSelectedImagePath = uAc.curModeImage;
                     bodyView.btnWindSpeed.UnSelectedImagePath = uAc.curFanImage;
                     bodyView.btnSwitch.IsSelected = uAc.on_off == "on";
+                    if (uAc.refreshTime.AddMilliseconds(1000) < DateTime.Now)
+                    {
+                        bodyView.arcBar.Progress = uAc.curTemp;
+                    }
                 });
             }
             catch (Exception ex)
@@ -64,7 +68,7 @@
         {
             btnMinus.MouseUpEventHandler = (sender, e) =>
             {
-                if (aC.curTemp < 20)
+                if (aC.curTemp < 17)
                 {
                     return;
                 }
@@ -104,32 +108,10 @@
             btnMode.MouseUpEventHandler = (sender, e) =>
             {
                 LoadDiv_ChangeModeView();
-                //if (aC.mode.Count <= 1)
-                //    return;
-                //var modeIndex = aC.mode.IndexOf(aC.curMode) + 1;
-                //if (modeIndex == aC.mode.Count)
-                //{
-                //    modeIndex = 0;
-                //}
-                //aC.curMode = aC.mode[modeIndex];
-                //btnMode.UnSelectedImagePath = aC.curModeImage;
-                //btnWindSpeed.UnSelectedImagePath = aC.curFanImage;
-                //Control.Send(CommandType_A.write, aC);
             };
             btnWindSpeed.MouseUpEventHandler = (sender, e) =>
             {
                 LoadDiv_ChangeFanView();
-                //if (aC.fan.Count <= 1)
-                //    return;
-                //var windSpeedIndex = aC.fan.IndexOf(aC.curFan) + 1;
-                //if (windSpeedIndex == aC.fan.Count)
-                //{
-                //    windSpeedIndex = 0;
-                //}
-                //aC.curFan = aC.fan[windSpeedIndex];
-                //btnMode.UnSelectedImagePath = aC.curModeImage;
-                //btnWindSpeed.UnSelectedImagePath = aC.curFanImage;
-                //Control.Send(CommandType_A.write, aC);
             };
 
             btnSwitch.MouseUpEventHandler = (sender, e) =>

--
Gitblit v1.8.0