From ed2f4a97aa48cdb4a013d2a389877f52eb3eccdf Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 29 十月 2019 13:15:59 +0800
Subject: [PATCH] Merge branch 'DEV_GXC' of http://172.16.1.23:6688/r/~xm/HomeApp 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