From d4811b7d34b45ff6b21b97f11da128b5572ec526 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 03 三月 2021 16:03:03 +0800
Subject: [PATCH] 20210303-1

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

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index 13fb0f2..de798f2 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -488,10 +488,10 @@
                     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:
                         break;
@@ -550,7 +550,9 @@
                 };
                 functionView.AddChidren(btnName);
 
-                if (item != ShowFunction.Environmental && item != ShowFunction.Sensor && functionCount != 0)
+                if (item != ShowFunction.Environmental && item != ShowFunction.Sensor && item != ShowFunction.VideoIntercom
+                    && item != ShowFunction.SecurityMonitoring
+                    && functionCount != 0)
                 {
                     Button btnFunctionCount = new Button()
                     {
@@ -615,7 +617,7 @@
                             LoadEvent_SwitchFunction(btnLightPower, item, functionView);
                         };
                         functionPageTitleId = StringId.Lights;
-                      
+
                         #endregion
                         break;
                     case ShowFunction.AC:
@@ -763,10 +765,27 @@
                         break;
                     case ShowFunction.SecurityMonitoring:
                         btnName.TextID = StringId.SecurityMonitoring;
+                        btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
+                        {
+#if __IOS__
+                            EZSDK.IOS.EZSDK.Go2EZvizMonitor();
+#else  //瀹夊崜鎽勫儚澶�
+                            ((BaseActivity)Shared.Application.Activity).SetCamera(b =>
+                            {
+                                if (b)
+                                {
+                                    Android.Content.Intent intent = new Android.Content.Intent();
+                                    intent.SetComponent(new Android.Content.ComponentName(Shared.Application.Activity, "com.videogo.MainActivity"));
+                                    Shared.Application.Activity.StartActivity(intent);
+                                }
+                            });
+
+#endif
+                        };
                         break;
                     case ShowFunction.Sensor:
                         btnName.TextID = StringId.Sensor;
-
+                        functionPageTitleId = StringId.Sensor;
                         break;
                     case ShowFunction.VideoIntercom:
                         btnName.TextID = StringId.VideoIntercom;
@@ -774,7 +793,7 @@
 
                 }
                 //鐣岄潰璺宠浆--闊充箰璺宠浆鑷繁鐨勭晫闈�--鐜璺宠浆鑷繁鐨勭晫闈�
-                if (item != ShowFunction.Music && item != ShowFunction.Environmental)
+                if (item != ShowFunction.Music && item != ShowFunction.Environmental && item != ShowFunction.SecurityMonitoring)
                 {
                     btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
                     {
@@ -793,10 +812,10 @@
                 s1View.Height = s2View.Height = functionContentView.Height = functionContentViewHeight+ Application.GetRealWidth(40);
             }
 
-            #endregion
+#endregion
         }
 
-        #region 鍒囨崲妤煎眰
+#region 鍒囨崲妤煎眰
         /// <summary>
         /// 妤煎眰鏄剧ず鍒囨崲
         /// </summary>
@@ -953,6 +972,6 @@
         {
 
         }
-        #endregion
+#endregion
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0