From 3d4996d54a0508724b199b5c4f50e2a02ec86103 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期五, 26 二月 2021 15:04:27 +0800 Subject: [PATCH] 添加萤石功能 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 3603252..4ce050b 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -617,7 +617,7 @@ LoadEvent_SwitchFunction(btnLightPower, item, functionView); }; functionPageTitleId = StringId.Lights; - + #endregion break; case ShowFunction.AC: @@ -774,7 +774,20 @@ btnName.TextID = StringId.VideoIntercom; 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; @@ -799,10 +812,10 @@ s1View.Height = s2View.Height = functionContentView.Height = functionContentViewHeight+ Application.GetRealWidth(40); } - #endregion +#endregion } - #region 鍒囨崲妤煎眰 +#region 鍒囨崲妤煎眰 /// <summary> /// 妤煎眰鏄剧ず鍒囨崲 /// </summary> @@ -959,6 +972,6 @@ { } - #endregion +#endregion } } \ No newline at end of file -- Gitblit v1.8.0