From 58074f23f4eca81f96565946a5faf8c53e6202d1 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 26 二月 2021 14:12:41 +0800
Subject: [PATCH] 上传测试

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

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

--
Gitblit v1.8.0