From a4d525d08da7b6fb985b0069c539c11b06306a9b Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期三, 13 十一月 2019 16:28:34 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-wjc

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
index a1b16b0..1f83307 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs
@@ -28,9 +28,7 @@
                 Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); });
                 try
                 {
-                    CommonDevice.DebugPrintLog($"11111111111111F");
                     await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, accountObj);
-                    CommonDevice.DebugPrintLog($"11111111111111G");
                 }
                 catch { }
                 finally
@@ -38,7 +36,6 @@
                     Application.RunOnMainThread(() =>
                     {
                         MidFrameLayoutContent();
-                        CommonDevice.DebugPrintLog($"11111111111111E");
                         CommonPage.Loading.Hide();
                     });
                 }
@@ -50,8 +47,16 @@
         /// </summary>
         public void Show()
         {
-            CommonDevice.DebugPrintLog($"11111111111111A");
-            this.TopFrameLayout(this, accountObj.Account);
+            string accountTitle = "";
+            if (accountObj.UserName != null)
+            {
+                accountTitle = accountObj.UserName;
+            }
+            else
+            {
+                accountTitle = accountObj.Account;
+            }
+            this.TopFrameLayout(this, accountTitle);
 
             EventHandler<MouseEventArgs> eHandlerBack = (sender, e) =>
             {
@@ -60,14 +65,11 @@
             this.btnBack.MouseUpEventHandler += eHandlerBack;
             this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack;
             this.MidFrameLayout(this);
-            CommonDevice.DebugPrintLog($"11111111111111B");
             ReadDoorLockUserInfo();
-            CommonDevice.DebugPrintLog($"11111111111111C");
         }
 
         public void MidFrameLayoutContent()
         {
-            CommonDevice.DebugPrintLog($"11111111111111D");
             var bodyView = new VerticalScrolViewLayout()
             {
             };

--
Gitblit v1.8.0