From e322d91c7325019710bfdb046c5fea673031455a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 29 七月 2020 11:53:01 +0800
Subject: [PATCH] 20200729

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

diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs
index 578c971..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,6 +121,11 @@
             {
                 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);
             };
         }

--
Gitblit v1.8.0