From 34d49c20c2c2543658e844847c5eaa87f4c954e9 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 23 二月 2021 17:28:40 +0800
Subject: [PATCH] Merge branch 'temp-wxr' into NewFilePath

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

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index c44b3d0..ef60cd5 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -490,10 +490,18 @@
                     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:
+                        functionCount = 1;
                         break;
 
+                }
+
+                if(functionCount == 0)
+                {
+                    continue;
                 }
 
                 functionCategoryCount++;
@@ -543,7 +551,8 @@
                 };
                 functionView.AddChidren(btnName);
 
-                if (item != ShowFunction.Environmental && functionCount != 0)
+                if (item != ShowFunction.Environmental && item != ShowFunction.Sensor && item != ShowFunction.VideoIntercom
+                    && functionCount != 0)
                 {
                     Button btnFunctionCount = new Button()
                     {
@@ -759,15 +768,23 @@
                         break;
                     case ShowFunction.Sensor:
                         btnName.TextID = StringId.Sensor;
-
+                        functionPageTitleId = StringId.Sensor;
                         break;
                     case ShowFunction.VideoIntercom:
                         btnName.TextID = StringId.VideoIntercom;
+                        btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
+                        {
+#if __IOS__
+                            EZSDK.IOS.EZSDK.Go2EZvizMonitor();
+#else  //瀹夊崜鎽勫儚澶�
+
+#endif
+                        };
                         break;
 
                 }
                 //鐣岄潰璺宠浆--闊充箰璺宠浆鑷繁鐨勭晫闈�--鐜璺宠浆鑷繁鐨勭晫闈�
-                if (item != ShowFunction.Music && item != ShowFunction.Environmental)
+                if (item != ShowFunction.Music && item != ShowFunction.Environmental && item != ShowFunction.VideoIntercom)
                 {
                     btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
                     {
@@ -786,10 +803,10 @@
                 s1View.Height = s2View.Height = functionContentView.Height = functionContentViewHeight+ Application.GetRealWidth(40);
             }
 
-            #endregion
+#endregion
         }
 
-        #region 鍒囨崲妤煎眰
+#region 鍒囨崲妤煎眰
         /// <summary>
         /// 妤煎眰鏄剧ず鍒囨崲
         /// </summary>
@@ -946,6 +963,6 @@
         {
 
         }
-        #endregion
+#endregion
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0