From e3ad42ffa2fa67c8f6cb4519ca626fa275c8947d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 02 十二月 2020 16:34:40 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/CJL-NEW'

---
 HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index 60cbac3..5672ac9 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -341,7 +341,7 @@
                 var btnAllClose = new Button()
                 {
                     X = Application.GetRealWidth(282),
-                    Y = Application.GetRealHeight(126),
+                    Y = Application.GetRealWidth(126),
                     Width = Application.GetMinRealAverage(58),
                     Height = Application.GetMinRealAverage(58),
                     UnSelectedImagePath = "Classification/Room/AllCloseIcon.png",
@@ -363,7 +363,12 @@
                         btnFloorAndRoomName.Text = room.floorName + room.roomName;
                     };
 
-                    var view = new RoomPage(room, ReloadRoomName);
+                    //鎴块棿鍒犻櫎浜嬩欢
+                    Action deleteAction = () => {
+                        roomView.RemoveFromParent();
+                    };
+
+                    var view = new RoomPage(room, ReloadRoomName, deleteAction);
                     MainPage.BasePageView.AddChidren(view);
                     view.LoadPage();
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;

--
Gitblit v1.8.0