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 | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 32f68a6..13fb0f2 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -490,6 +490,8 @@ 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; @@ -548,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