From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码
---
ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs | 63 ++++++++++++++++++++++++++++++-
1 files changed, 60 insertions(+), 3 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs
old mode 100755
new mode 100644
index aa3f637..88c4e99
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs
@@ -317,6 +317,30 @@
var form = new Residence.ResidenceListMainForm();
form.AddForm();
};
+ }
+
+ //浜鸿劯绠$悊
+ unSelectPic = "Center/FaceManagement.png";
+ TextID = R.MyInternationalizationString.uFace;
+ if (UserCenterResourse.UserInfo.AuthorityNo == 1)//鏄富璐﹀彿鎵嶅睍绀�
+ {
+ //鐢熸垚鎺т欢
+ var frame = this.CreatMainMenuControl(frameMenu, TextID, unSelectPic);
+ frame.ButtonClickEvent += (sender, e) =>
+ {
+ if (Common.Config.Instance.Home.IsVirtually == true)
+ {
+ //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥
+ return;
+ }
+ //鎵撳紑浜鸿劯绠$悊椤甸潰
+#if iOS
+ Shared.IOS.HDLFVSDK.Video.ShowFaceManagement();
+#endif
+#if Android
+ Com.Evoyohome.Sphonelibs.Global.Global.OpenFaceManageActivity(Application.Activity);
+#endif
+ };
}
//瀹夐槻绠$悊
@@ -400,7 +424,40 @@
frameOtherMenuContr.Y = Application.GetRealHeight(698);
frameOtherMenuContr.Height = ControlCommonResourse.ListViewRowHeight * 4 + Application.GetRealHeight(26 * 4);
frameWhite.AddChidren(frameOtherMenuContr);
- }
+ }
+
+ //鍙瀵硅
+ var rowVideo = new FrameRowControl(frameOtherMenuContr.rowSpace / 2);
+ frameOtherMenuContr.AddChidren(rowVideo);
+ //鍚戝彸鍥炬爣
+ var btnBackVDRight = rowVideo.AddRightArrow();
+ btnBackVDRight.X -= ControlCommonResourse.XXLeft / 2;
+ //鍥炬爣
+ var btnBackVDIcon = rowVideo.AddLeftIcon();
+ btnBackVDIcon.X -= ControlCommonResourse.XXLeft / 2;
+ btnBackVDIcon.UnSelectedImagePath = "Item/videoIntercom.png";
+ //搴曠嚎
+ var btnBackVDLine = rowVideo.AddBottomLine();
+ btnBackVDLine.X -= ControlCommonResourse.XXLeft / 2;
+ //鏁版嵁澶囦唤View
+ var btnBackVDView = rowVideo.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.videoIntercom), 300);
+ btnBackVDView.X -= ControlCommonResourse.XXLeft / 2;
+ rowVideo.ButtonClickEvent += (sender, e) =>
+ {
+ if (Common.Config.Instance.Home.IsVirtually == true)
+ {
+ //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥
+ return;
+ }
+
+#if iOS
+ Shared.IOS.HDLFVSDK.Video.ShowDeviceList();
+#endif
+#if Android
+
+ Com.Evoyohome.Sphonelibs.Global.Global.OpenIntercomActivity(Application.Activity);
+#endif
+ };
if (UserCenterResourse.UserInfo.AuthorityNo == 1 || UserCenterResourse.UserInfo.AuthorityNo == 2)
{
@@ -427,8 +484,8 @@
//濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥
return;
}
- var form = new HdlBackup.HdlBackupListForm();
- form.AddForm();
+ var form = new HdlBackup.HdlBackupListForm();
+ ; form.AddForm();
};
}
--
Gitblit v1.8.0