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/Light/DimmerPage.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index 6171977..796ced9 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -41,6 +41,7 @@
         Button btnCollection_Out;
         Button btnFunctionName_Out;
         Button btnFromFloor_Out;
+        bool onDimmerBar = false;
         /// <summary>
         /// 鍒锋柊鏄剧ず淇℃伅
         /// </summary>
@@ -122,7 +123,7 @@
                 Y = Application.GetRealHeight(74 + 16),
                 Width = Application.GetRealWidth(168 - 40),
                 Height = Application.GetRealHeight(288 - 16 - 16),
-                WaveColor = light.on_off == 1 ? CSS_Color.AuxiliaryColor1 : CSS_Color.DividingLineColor,
+                WaveColor = light.on_off == "on" ? CSS_Color.AuxiliaryColor1 : CSS_Color.DividingLineColor,
                 WaveBorderColor = CSS_Color.PromptingColor2,
                 BorderColor = 0x00000000,
                 CornerRadius = Application.GetRealWidth(1),
@@ -201,7 +202,7 @@
                 Height = Application.GetMinRealAverage(40),
                 UnSelectedImagePath = "Public/PowerClose.png",
                 SelectedImagePath = "Public/PowerOpen.png",
-                IsSelected = light.on_off != 0,
+                IsSelected = light.on_off == "on",
                 //Tag = 
             };
             controlView.AddChidren(btnSwitch);

--
Gitblit v1.8.0