From f80dce34c60279a4c2054a9959df81473f4e8056 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 20 四月 2021 14:39:31 +0800
Subject: [PATCH] 1

---
 HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
index 279c70d..1506eb4 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
@@ -59,6 +59,7 @@
                                         case FunctionCategory.AC:
                                         case FunctionCategory.FloorHeat:
                                         case FunctionCategory.Electric:
+                                        case FunctionCategory.AirFresh:
                                             #region 鎸夐挳鐘舵�佹洿鏂�
                                             if (cTag == updataFunction.sid + "_Switch")
                                             {
@@ -77,14 +78,13 @@
                                             {
                                                 try
                                                 {
+                                                    (fcView.GetChildren(j) as DiyImageSeekBar).Progress = Convert.ToInt32(updataFunction.GetAttrState(FunctionAttributeKey.Brightness));
                                                     if (updataFunction.trait_on_off.curValue.ToString() == "on")
                                                     {
-                                                        (fcView.GetChildren(j) as DiyImageSeekBar).Progress = (updataFunction as Light).brightness;
                                                         (fcView.GetChildren(j) as DiyImageSeekBar).ProgressBarColor = CSS.CSS_Color.AuxiliaryColor1;
                                                     }
                                                     else
                                                     {
-                                                        (fcView.GetChildren(j) as DiyImageSeekBar).Progress = (updataFunction as Light).brightness;
                                                         (fcView.GetChildren(j) as DiyImageSeekBar).ProgressBarColor = CSS.CSS_Color.PromptingColor2;
                                                     }
                                                 }

--
Gitblit v1.8.0