From 4f2dbd1f6a1ec2d9c3c39b4a37b0b7c9ddece4aa Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 23 九月 2021 15:24:01 +0800
Subject: [PATCH] 主页刷新优化

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

diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
index 47a64cc..88c7b71 100644
--- a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
@@ -38,8 +38,20 @@
         public void LoadPage(int titleId)
         {
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
-            new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
-
+            //if (titleId == StringId.Lights)
+            //{
+            //    Action action = () => {
+            //        var skipView = new AddLightScene(new List<Function>(),new Scene() { sceneType = SceneType.LightScene});
+            //        MainPage.BasePageView.AddChidren(skipView);
+            //        skipView.LoadPage();
+            //        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            //    };
+            //    new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView_LightFunction(action);
+            //}
+            //else
+            {
+                new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
+            }
             /// <summary>
             /// 鎴块棿鍐呭鏄剧ず鍖哄煙
             /// </summary>
@@ -128,7 +140,10 @@
             functionListView.RemoveAll();
             foreach (var function in showList)
             {
-
+                if(function.spk == SPK.SensorDryContact)
+                {
+                    continue;
+                }
                 if (function.spk == SPK.LightRGB || function.spk == SPK.LightDimming)
                 {
                     var functionDiv = new FunctionControlZone(function)

--
Gitblit v1.8.0