From 081ea8d273048fd03756718ac6fb48a3c09218e9 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 29 十月 2019 13:10:00 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs
index 89aa63f..5cb012c 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs
@@ -152,7 +152,7 @@
             };
             this.midFrameLayout.AddChidren(bottomFrameLayout);
 
-            Button btnChooseKeyMode = new Button()
+            var btnChooseKeyMode = new Button()
             {
                 Width = Application.GetRealWidth(907),
                 Gravity = Gravity.CenterHorizontal,
@@ -184,6 +184,8 @@
 
             btnChooseKeyMode.MouseUpEventHandler += (sender, e) =>
             {
+                this.RemoveFromParent();
+
                 var chooseKeyModePage = new Shared.Phone.UserCenter.DeviceBind.ChooseKeyModePage(currentKey, curDeviceBindType, targetList);
                 Shared.Phone.UserView.HomePage.Instance.AddChidren(chooseKeyModePage);
                 Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
@@ -198,8 +200,6 @@
                     };
                     chooseKeyModePage.action += action;
                 }
-
-                this.RemoveFromParent();
             };
             #endregion
         }

--
Gitblit v1.8.0