From 17c8d94258154ab2e9f6d2cf821202c873b9f118 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 16 十二月 2020 15:39:15 +0800
Subject: [PATCH] 22222
---
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs | 28 ++++++++--------------------
1 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
index 5768fcd..dec1a64 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
@@ -12,32 +12,20 @@
Action editBackAction;
/// <summary>
- /// 鍔犺浇浜嬩欢鍒楄〃
- /// </summary>
- void LoadEventList()
- {
-
- }
-
- /// <summary>
/// 璺宠浆鍒板鍔犳埧闂寸殑鐣岄潰
/// </summary>
void LoadEvent_SkipAddRoomPage()
{
- skipAddRoomAction = (type, floor) =>
+ skipAddRoomAction = () =>
{
- Room newRoom = new Room() {
- uid = Guid.NewGuid().ToString(),
- };
- 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;
};
}
@@ -49,7 +37,7 @@
{
editBackAction = () =>
{
- if (string.IsNullOrEmpty(r.uid))
+ if (string.IsNullOrEmpty(r.roomId))
{
for (int i = 0; i < roomsListView.ChildrenCount; )
{
@@ -74,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