From 19e762179bdc9efc23704bc471cf974ed282b43d Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 31 三月 2021 17:42:30 +0800
Subject: [PATCH] 合并可视对讲代码

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

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index 6e2e2c9..d23f3b4 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -501,6 +501,10 @@
                         functionCount = FunctionList.List.GetArmSensorList().Count;
                         break;
                     case ShowFunction.VideoIntercom:
+                        if (FunctionList.List.videoIntercom != null)
+                        {
+                            functionCount = 1;
+                        }
                         break;
 
                 }
@@ -801,12 +805,20 @@
                         break;
                     case ShowFunction.VideoIntercom:
                         btnName.TextID = StringId.VideoIntercom;
+
+                        btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
+                        {
+                            var mainView = new HDL_ON.UI.UI2.FuntionControlView.Video.MainView();
+                            MainPage.BasePageView.AddChidren(mainView);
+                            mainView.Show();
+                            MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                        };
                         break;
 
                 }
                 //鐣岄潰璺宠浆--闊充箰璺宠浆鑷繁鐨勭晫闈�--鐜璺宠浆鑷繁鐨勭晫闈�
                 if (item != ShowFunction.Music && item != ShowFunction.Environmental && item != ShowFunction.SecurityMonitoring
-                    && ShowFunction.EnergyMonitoring!= item)
+                    && ShowFunction.EnergyMonitoring!= item && ShowFunction.VideoIntercom != item)
                 {
                     btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
                     {

--
Gitblit v1.8.0