From 82a773d1783549caca563831aac8affc059deedf Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 07 十一月 2019 10:56:13 +0800 Subject: [PATCH] 合并了全部的代码,IOS 图片需要从新引入工程 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs index da55c58..49fb50e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs @@ -1,4 +1,5 @@ 锘縰sing System; +using Shared.Common; using ZigBee.Device; namespace Shared.Phone.UserCenter.DoorLock { @@ -20,11 +21,36 @@ Shared.Phone.UserCenter.MemberInfoRes accountObj; #endregion + void ReadDoorLockUserInfo() + { + System.Threading.Tasks.Task.Run(async () => + { + Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); + try + { + CommonDevice.DebugPrintLog($"11111111111111F"); + await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, accountObj); + CommonDevice.DebugPrintLog($"11111111111111G"); + } + catch { } + finally + { + Application.RunOnMainThread(() => + { + MidFrameLayoutContent(); + CommonDevice.DebugPrintLog($"11111111111111E"); + CommonPage.Loading.Hide(); + }); + } + }); + } + /// <summary> /// UI鏄剧ず /// </summary> public void Show() { + CommonDevice.DebugPrintLog($"11111111111111A"); this.TopFrameLayout(this, accountObj.Account); EventHandler<MouseEventArgs> eHandlerBack = (sender, e) => @@ -34,12 +60,14 @@ this.btnBack.MouseUpEventHandler += eHandlerBack; this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack; this.MidFrameLayout(this); - - MidFrameLayoutContent(); + CommonDevice.DebugPrintLog($"11111111111111B"); + ReadDoorLockUserInfo(); + CommonDevice.DebugPrintLog($"11111111111111C"); } public void MidFrameLayoutContent() { + CommonDevice.DebugPrintLog($"11111111111111D"); var bodyView = new VerticalScrolViewLayout() { }; @@ -107,7 +135,10 @@ } else { - + var userDoorLockPage = new UserDoorLockPage(doorLock, accountObj); + Shared.Phone.UserView.HomePage.Instance.AddChidren(userDoorLockPage); + Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; + userDoorLockPage.Show(); } }; btnRight.MouseUpEventHandler += eHandler; -- Gitblit v1.8.0