From c4b73204e8875dbb27ff0f26959ae69497ab4b5b Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 24 三月 2021 16:25:48 +0800
Subject: [PATCH] 1

---
 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