From 8123d0298c0fed448bddc956059126a4875782c2 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 23 三月 2021 18:02:38 +0800 Subject: [PATCH] 2021-3-23-2 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs index 0be0bba..c1169c5 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs @@ -32,9 +32,8 @@ this.AddChidren(topView.FLayoutView()); topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { - BackAction(); - BackAction = null; - this.RemoveFromParent(); + + RemoveFromParent(); }; FrameLayout middFLayout = new FrameLayout(); @@ -519,7 +518,15 @@ } }, id, "鍝佺墝鍒楄〃"); } - + /// <summary> + /// 绉婚櫎鐣岄潰 + /// </summary> + public override void RemoveFromParent() + { + BackAction(); + BackAction = null; + base.RemoveFromParent(); + } } -- Gitblit v1.8.0