From b8bdf52ccc38e3c6b0a95c2b60f59fc99dc546fd Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期四, 22 四月 2021 09:25:06 +0800 Subject: [PATCH] 2021-4-22 对接乐橙可视对讲 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 39 +++++++++++++++++++++++---------------- 1 files changed, 23 insertions(+), 16 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 4e4505a..7a771d0 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -494,6 +494,18 @@ functionCount = FunctionList.List.GetArmSensorList().Count; break; case ShowFunction.VideoIntercom: +<<<<<<< Updated upstream +======= + if (FunctionList.List.videoIntercom != null && FunctionList.List.videoIntercom.Count > 0) + { + functionCount = 1; + } + break; + case ShowFunction.SecurityCenter: +#if DEBUG + functionCount = 1; +#endif +>>>>>>> Stashed changes break; } @@ -615,7 +627,7 @@ LoadEvent_SwitchFunction(btnLightPower, item, functionView); }; functionPageTitleId = StringId.Lights; - + #endregion break; case ShowFunction.AC: @@ -755,28 +767,23 @@ 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 + HDLCommon.Current.Go2EZvizMonitor(bodyView); }; break; case ShowFunction.Sensor: btnName.TextID = StringId.Sensor; functionPageTitleId = StringId.Sensor; break; - case ShowFunction.VideoIntercom: + case ShowFunction.VideoIntercom://鍙瀵硅 btnName.TextID = StringId.VideoIntercom; +<<<<<<< Updated upstream +======= + btnFunctionViewBg.MouseUpEventHandler = (sender, e) => + { + var videoMethod = new UI2.FuntionControlView.Video.VideoMethod(); + videoMethod.MianView(this); + }; +>>>>>>> Stashed changes break; } -- Gitblit v1.8.0