From 611786df5108dca0bdcff03834cc285cba4b8e61 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 13 十月 2020 16:48:43 +0800
Subject: [PATCH] 2020-10-13-1

---
 HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
index f8a9d86..56e3053 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
@@ -11,7 +11,6 @@
         {
             try
             {
-                
                 Application.RunOnMainThread(() =>
                 {
                     if (bodyView == null)
@@ -28,6 +27,10 @@
                     {
                         bodyView.arcBar.Progress = uAc.curTemp;
                     }
+                    bodyView.arcBar.ProgressBarColor = uAc.on_off == "on" ? CSS_Color.MainColor : CSS_Color.PromptingColor2;
+                    bodyView.arcBar.ThumbImagePath = uAc.on_off == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png";
+                    bodyView.arcBar.IsClickable = uAc.on_off == "on";
+
                 });
             }
             catch (Exception ex)
@@ -118,10 +121,14 @@
             {
                 btnSwitch.IsSelected = !btnSwitch.IsSelected;
                 aC.on_off = btnSwitch.IsSelected ? "on" : "off";
+
+                bodyView.arcBar.ProgressBarColor = aC.on_off == "on" ? CSS_Color.MainColor : CSS_Color.PromptingColor2;
+                bodyView.arcBar.ThumbImagePath = aC.on_off == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png";
+                bodyView.arcBar.IsClickable = aC.on_off == "on";
+
                 Control.Send(CommandType_A.write, aC);
             };
         }
-
 
         /// <summary>
         /// 鍔犺浇妯″紡鏀瑰彉浜嬩欢
@@ -135,7 +142,8 @@
             EventHandler<MouseEventArgs> eventHandler1 = (sender, e) =>
             {
                 btn1.IsSelected = btn2.IsSelected = true;
-                aC.curMode = curMode;
+                aC.trait_mode.curValues = curMode;
+                btnMode.UnSelectedImagePath = aC.curModeImage;
                 Control.Send(CommandType_A.write, aC);
                 dialog.Close();
             };
@@ -144,7 +152,7 @@
             dialogView.MouseUpEventHandler = eventHandler;
         }
         /// <summary>
-        /// 鍔犺浇妯″紡鏀瑰彉浜嬩欢
+        /// 鍔犺浇椋庨�熸敼鍙樹簨浠�
         /// </summary>
         void LoadEvent_ChangeFan(Dialog dialog, FrameLayout dialogView, Button btn1, Button btn2,string curFan)
         {
@@ -155,7 +163,8 @@
             EventHandler<MouseEventArgs> eventHandler1 = (sender, e) =>
             {
                 btn1.IsSelected = btn2.IsSelected = true;
-                aC.curFan = curFan;
+                aC.trait_fan.curValues = curFan;
+                btnWindSpeed.UnSelectedImagePath = aC.curFanImage;
                 Control.Send(CommandType_A.write, aC);
                 dialog.Close();
             };

--
Gitblit v1.8.0