From 8b9ce384b26c414db32f98e94e088f5334869c2d Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 13 十一月 2019 15:36:28 +0800 Subject: [PATCH] 全部合并了代码,安卓和 IOS 都测试通过了 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs index 910f6da..bb7014c 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() @@ -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