From 5d358b10622504ad02b042f9b1fdc74bb25d465e Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期二, 28 三月 2023 11:05:26 +0800
Subject: [PATCH] 1.更新HDLFVSDK 2.更新EZSDK.IOS
---
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs | 87 ++++++++++++++++++++++++++-----------------
1 files changed, 52 insertions(+), 35 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index ce10df7..23fd1d4 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -4,6 +4,11 @@
using HDL_ON.Entity;
using Shared;
+#if __IOS__
+using UIKit;
+using Foundation;
+#endif
+
namespace HDL_ON.UI
{
public partial class PersonalDataPage
@@ -434,12 +439,14 @@
{
EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
{
- //鎴戠殑浜岀淮鐮�
- var aep = new MyQRCodePage();
- MainPage.BasePageView.AddChidren(aep);
- aep.LoadPage();
- MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ ////鎴戠殑浜岀淮鐮�
+ //var aep = new MyQRCodePage();
+ //MainPage.BasePageView.AddChidren(aep);
+ //aep.LoadPage();
+ //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ //钀ょ煶璺宠浆瑙嗛椤�
+ EZSDK.IOS.EZSDK.SharedInstance().PlayWithDeviceSerial("J92513662", "1638782606240137218", "security.door.ezviz");
};
_QRcodeView.MouseUpEventHandler = eventHandler;
btnQRcode.MouseUpEventHandler = eventHandler;
@@ -447,7 +454,7 @@
btnQRcodeRight.MouseUpEventHandler = eventHandler;
}
- #region 淇敼缁戝畾閭
+#region 淇敼缁戝畾閭
/// <summary>
/// 淇敼缁戝畾閭
/// </summary>
@@ -459,6 +466,7 @@
{
btnUserEmailInfo.Text = GetBindAccountText(email);
+
};
if (CheckIfUnbound(btnUserEmailInfo.Text))
@@ -490,26 +498,32 @@
{
EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
{
- Action<string> action = (phone) =>
- {
- btnUserPhoneInfo.Text = GetBindAccountText(phone);
- };
+ //Action<string> action = (phone) =>
+ //{
+ // btnUserPhoneInfo.Text = GetBindAccountText(phone);
- if (CheckIfUnbound(btnUserPhoneInfo.Text))
- {
- //鏈粦瀹�,璺宠浆鏂扮粦瀹氶〉闈�
- var aep = new NewBindAccountPage();
- MainPage.BasePageView.AddChidren(aep);
- aep.LoadPage(action, true);
- MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
- }
- else
- {
- var aep = new AccountBindInfoPage();
- MainPage.BasePageView.AddChidren(aep);
- aep.LoadPage(action, 2, StringId.PhoneInfo);
- MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
- }
+ //};
+
+ //if (CheckIfUnbound(btnUserPhoneInfo.Text))
+ //{
+ // //鏈粦瀹�,璺宠浆鏂扮粦瀹氶〉闈�
+ // var aep = new NewBindAccountPage();
+ // MainPage.BasePageView.AddChidren(aep);
+ // aep.LoadPage(action, true);
+ // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ //}
+ //else
+ //{
+ // var aep = new AccountBindInfoPage();
+ // MainPage.BasePageView.AddChidren(aep);
+ // aep.LoadPage(action, 2, StringId.PhoneInfo);
+ // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ //}
+
+ //钀ょ煶璺宠浆璁惧鍒楄〃
+ NSObject[] types = new NSObject[1];
+ types[0] = new NSString("DL30V");
+ EZSDK.IOS.EZSDK.SharedInstance().ToEZDeviceListViewWithFilterTypes(types);
};
@@ -517,9 +531,9 @@
btnUserPhoneRight.MouseUpEventHandler = eventHandler;
userPhoneInfoView.MouseUpEventHandler = eventHandler;
}
- #endregion
+#endregion
- #region 瑙i攣璁剧疆鍖哄煙
+#region 瑙i攣璁剧疆鍖哄煙
//void LoadEvent_SkipInterpretationSettings()
//{
// EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
@@ -535,7 +549,7 @@
// btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler;
//}
- #endregion
+#endregion
/// <summary>
/// 璺宠浆淇敼瀵嗙爜鐣岄潰
@@ -544,15 +558,18 @@
{
EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
{
- //var page = new ResetPasswordOptionPage();
- //MainPage.BasePageView.AddChidren(page);
- //page.LoadPage();
+ ////var page = new ResetPasswordOptionPage();
+ ////MainPage.BasePageView.AddChidren(page);
+ ////page.LoadPage();
+ ////MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+
+ //var vcp = new ResetPasswordPage();
+ //MainPage.BasePageView.AddChidren(vcp);
+ //vcp.LoadPage();
//MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
- var vcp = new ResetPasswordPage();
- MainPage.BasePageView.AddChidren(vcp);
- vcp.LoadPage();
- MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ //钀ょ煶娣诲姞璁惧
+ EZSDK.IOS.EZSDK.SharedInstance().AddEzvizMonitorWithDeviceType("security.door.ezviz");
};
btnResetPasswordRight.MouseUpEventHandler = eventHandler;
--
Gitblit v1.8.0