HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-11-07 82a773d1783549caca563831aac8affc059deedf
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
@@ -1,4 +1,5 @@
using 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;