HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-11-18 4ce5177289b1d34e467de9d8790836559cc5a09e
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UndistributeDoorlockUserPage.cs
@@ -32,6 +32,28 @@
                Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); });
                try
                {
                    //await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, curAccountObj);
                    var list = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAcountUserlist(doorLock);
                }
                catch { }
                finally
                {
                    Application.RunOnMainThread(() =>
                    {
                        RefreshList();
                        CommonPage.Loading.Hide();
                    });
                }
            });
        }
        void ReadDoorLockUserInfo1()
        {
            System.Threading.Tasks.Task.Run(async () =>
            {
                Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); });
                try
                {
                    var getDoorLockInfo = await doorLock.GetDoorlockUserInfoAsync();
                    if (getDoorLockInfo != null && getDoorLockInfo.doorLockUserDetailData != null)
                    {
@@ -120,6 +142,7 @@
                    }
                    else
                    {
                        //数据如果在门锁上面是空的时候,数据也是没有的
                        Application.RunOnMainThread(() =>
                        {
                            new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
@@ -148,12 +171,16 @@
            EventHandler<MouseEventArgs> eHandlerBack = (sender, e) =>
            {
                RemoveFromParent();
             };
            };
            this.btnBack.MouseUpEventHandler += eHandlerBack;
            this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack;
            this.MidFrameLayout(this);
            ReadDoorLockUserInfo();
            MidFrameLayoutContent();
            if (doorLock.localDoorLockUserList.Count == 0)
            {
                ReadDoorLockUserInfo();
            }
            RefreshList();
        }
        public void MidFrameLayoutContent()
@@ -207,8 +234,6 @@
                Height = Application.GetRealHeight(1921 - 184 - 115 - 1),
            };
            this.midFrameLayout.AddChidren(bodyView);
            RefreshList();
        }
        void RefreshList()