From 1c4904d77f484c075080942d87785481b52b6fb2 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期一, 28 十月 2019 14:58:46 +0800
Subject: [PATCH] Revert "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 5cb012c..89aa63f 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);
 
-            var btnChooseKeyMode = new Button()
+            Button btnChooseKeyMode = new Button()
             {
                 Width = Application.GetRealWidth(907),
                 Gravity = Gravity.CenterHorizontal,
@@ -184,8 +184,6 @@
 
             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;
@@ -200,6 +198,8 @@
                     };
                     chooseKeyModePage.action += action;
                 }
+
+                this.RemoveFromParent();
             };
             #endregion
         }

--
Gitblit v1.8.0