From ff3cfcf62632bf43e51a6b6098c203bf0f5cddbc Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 24 十二月 2019 19:53:29 +0800
Subject: [PATCH] 2019.12.24

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs |   38 +++++++++++++-------------------------
 1 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
index bb4f462..1d333f0 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
@@ -21,27 +21,6 @@
         Shared.Phone.UserCenter.MemberInfoRes accountObj;
         #endregion
 
-        void ReadDoorLockUserInfo()
-        {
-            System.Threading.Tasks.Task.Run(async () =>
-            {
-                Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); });
-                try
-                {
-                    await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, accountObj);
-                }
-                catch { }
-                finally
-                {
-                    Application.RunOnMainThread(() =>
-                    {
-                        MidFrameLayoutContent();
-                        CommonPage.Loading.Hide();
-                    });
-                }
-            });
-        }
-
         /// <summary>
         /// UI鏄剧ず 
         /// </summary>
@@ -65,21 +44,28 @@
             this.btnBack.MouseUpEventHandler += eHandlerBack;
             this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack;
             this.MidFrameLayout(this);
-            ReadDoorLockUserInfo();
+            MidFrameLayoutContent();
         }
 
         public void MidFrameLayoutContent()
         {
-            var bodyView = new VerticalScrolViewLayout()
+            var bodyView = new VerticalRefreshLayout()
             {
             };
             this.midFrameLayout.AddChidren(bodyView);
+            bodyView.BeginHeaderRefreshingAction += async () =>
+             {
+                 bodyView.BeginHeaderRefreshing();
+                 await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAcountUserlist(doorLock);
+                 bodyView.EndHeaderRefreshing();
+             };
 
             for (int i = 0; i < 2; i++)
             {
                 var RowView = new FrameLayout()
                 {
-                    Height = Application.GetRealHeight(161),
+                    Height = Application.GetRealHeight(127 + 23),
+                    BackgroundColor = Shared.Common.ZigbeeColor.Current.XMWhite,
                 };
                 bodyView.AddChidren(RowView);
 
@@ -124,6 +110,7 @@
                 else
                 {
                     btnMemberName.Text = Language.StringByID(R.MyInternationalizationString.LinkageEvent);
+                    line2.Visible = false;
                 }
 
                 EventHandler<MouseEventArgs> eHandler = (sender, e) =>
@@ -164,7 +151,8 @@
                     }
                 };
                 btnRight.MouseUpEventHandler += eHandler;
-                RowView.MouseUpEventHandler += eHandler;
+                RowView.MouseUpEventHandler += eHandler;
+                btnMemberName.MouseUpEventHandler += eHandler;
             }
         }
 

--
Gitblit v1.8.0