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/AddUnLockMethodTip.cs |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs
index 910f6da..5a82b3d 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs
@@ -48,11 +48,6 @@
 
             EventHandler<MouseEventArgs> eHandlerBack = (sender, e) =>
             {
-                if (doorLock.Gateway != null || doorLock.Gateway.GwResDataAction != null)
-                {
-                    doorLock.Gateway.GwResDataAction -= action;
-                }
-
                 this.RemoveFromParent();
             };
             this.btnBack.MouseUpEventHandler += eHandlerBack;
@@ -60,6 +55,19 @@
             this.MidFrameLayout(this);
 
             MidFrameLayoutContent();
+        }
+
+        /// <summary>
+        /// 閲嶅啓绉婚櫎鏂规硶
+        /// </summary>
+        public override void RemoveFromParent()
+        {
+            ZbGateway.StatusList.Remove(this);
+            if (doorLock.Gateway != null || doorLock.Gateway.GwResDataAction != null)
+            {
+                doorLock.Gateway.GwResDataAction -= action;
+            }
+            base.RemoveFromParent();
         }
 
         public void MidFrameLayoutContent()
@@ -142,7 +150,7 @@
                 Text = Language.StringByID(R.MyInternationalizationString.NextStepXm),
                 TextColor = Shared.Common.ZigbeeColor.Current.XMWhite,
                 Gravity = Gravity.CenterHorizontal,
-                Radius = 10,
+                Radius = (uint)Application.GetRealHeight(127 / 2),
                 TextSize = 20,
                 Enable = false,
                 BackgroundColor = Shared.Common.ZigbeeColor.Current.XMUnSelect,
@@ -248,13 +256,6 @@
                                 nextBtn.Enable = true;
                                 nextBtn.BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack;
                             });
-                        }
-                        else
-                        {
-                            //Application.RunOnMainThread(() =>
-                            //{
-                            //new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.EntryCurrentUnlockMethod), Direction = AMPopTipDirection.Up, CloseTime = 1 }.Show(this.btnTip);
-                            //});
                         }
                     }
                 }

--
Gitblit v1.8.0