From abf4a98837e43e542701c60b7ec6a088cd5236da Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 22 二月 2021 09:10:35 +0800
Subject: [PATCH] 20210222

---
 HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index c44b3d0..13fb0f2 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -490,10 +490,17 @@
                     case ShowFunction.SecurityMonitoring:
                         break;
                     case ShowFunction.Sensor:
+                        functionCount = FunctionList.List.sensorsArm.Count;
+                        //functionOnCount = FunctionList.List.aCs.FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count;
                         break;
                     case ShowFunction.VideoIntercom:
                         break;
 
+                }
+
+                if(functionCount == 0)
+                {
+                    continue;
                 }
 
                 functionCategoryCount++;
@@ -543,7 +550,7 @@
                 };
                 functionView.AddChidren(btnName);
 
-                if (item != ShowFunction.Environmental && functionCount != 0)
+                if (item != ShowFunction.Environmental && item != ShowFunction.Sensor && functionCount != 0)
                 {
                     Button btnFunctionCount = new Button()
                     {

--
Gitblit v1.8.0