From bb6ad792b598927a5459a5fb6f6c27fb1aa9e94e Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 17 十二月 2020 14:06:36 +0800
Subject: [PATCH] 20201217-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs |   22 +++++++---------------
 1 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
index 1ffbe7b..dec1a64 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
@@ -12,28 +12,20 @@
         Action editBackAction;
 
         /// <summary>
-        /// 鍔犺浇浜嬩欢鍒楄〃
-        /// </summary>
-        void LoadEventList()
-        {
-            
-        }
-
-        /// <summary>
         /// 璺宠浆鍒板鍔犳埧闂寸殑鐣岄潰
         /// </summary>
         void LoadEvent_SkipAddRoomPage()
         {
-            skipAddRoomAction = (type, floor) =>
+            skipAddRoomAction = () =>
             {
-                Room newRoom = new Room();
-                editBackAction = () => {            
+                Action<Room> addRoomBackAction = (newRoom) =>
+                {
                     LoadRoomRow(newRoom);
                 };
 
-                var skipPage = new RoomEditPage(newRoom, StringId.AddRoom, editBackAction, null);
-                MainPage.BasePageView.AddChidren(skipPage);
-                skipPage.LoadPage();
+                var addRoomPage = new AddRoomPage(addRoomBackAction);
+                MainPage.BasePageView.AddChidren(addRoomPage);
+                addRoomPage.LoadPage();
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
             };
         }
@@ -70,7 +62,7 @@
                 roomRow.RemoveFromParent();
             };
 
-            var skipPage = new RoomEditPage(r, StringId.EditRoomInfo, editBackAction, deleteAction);
+            var skipPage = new RoomEditPage(r, editBackAction, deleteAction);
             MainPage.BasePageView.AddChidren(skipPage);
             skipPage.LoadPage();
             MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;

--
Gitblit v1.8.0