From 38df05b600e7a41106f710a3e4287e37fbf35d03 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 27 十月 2022 09:10:34 +0800
Subject: [PATCH] 备份

---
 HDL_ON/UI/UI2/2-Classification/FunctionPage.cs |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
index 3db5ac0..f23e855 100644
--- a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
@@ -37,6 +37,7 @@
 
         public void LoadPage(int titleId)
         {
+
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
             if (titleId == StringId.Lights)
             {
@@ -65,6 +66,38 @@
             {
                 new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
             }
+
+
+
+#if DEBUG
+            //Button testBtn = new Button()
+            //{
+            //    X = Application.GetRealWidth(80),
+            //    Height = Application.GetRealHeight(64),
+            //    BackgroundColor = 0xFFFF0000
+            //};
+            //bodyView.AddChidren(testBtn);
+            //int ddd = 0;
+            //testBtn.MouseUpEventHandler = (sender, e) => {
+            //    ddd++;
+            
+            //        Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101");
+            //    if (ddd % 2 == 0)
+            //    {
+            //        function_online.online = true;
+            //    }
+            //    else
+            //    {
+            //        function_online.online = false;
+            //    }
+            //    HomePage.LoadEvent_RefreshDevcieOnline(function_online);
+            //    FunctionPage.UpdataOnline(function_online);
+            //    RoomPage.UpdataOnline(function_online);
+
+
+            //};
+#endif
+
             /// <summary>
             /// 鎴块棿鍐呭鏄剧ず鍖哄煙
             /// </summary>
@@ -168,7 +201,7 @@
                 {
                     continue;
                 }
-                if (function.spk == SPK.LightRGB || function.spk == SPK.LightDimming)
+                if (function.spk == SPK.LightRGBW || function.spk == SPK.LightRGB || function.spk == SPK.LightDimming)
                 {
                     var functionDiv = new FunctionControlZone(function)
                     {

--
Gitblit v1.8.0