From e3f3f62315a5789cd812b96954b67bffda4a0f5a Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 01 四月 2021 16:33:55 +0800 Subject: [PATCH] 金辉项目,萤石摄像头更新 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 5696551..383a189 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -478,7 +478,7 @@ functionCount = FunctionList.List.GetElectricals().Count; functionOnCount = FunctionList.List.GetElectricals().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count; #endregion - functionCount = 1; + //functionCount = 1; break; case ShowFunction.Environmental: #region 鐜鏁版嵁 @@ -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