From 9d65c293924e4edbbc8c6c6091f55d7fc49c23eb Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 06 七月 2021 13:15:46 +0800
Subject: [PATCH] 乐橙子账号token
---
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs | 36 ++++++++++++++----------------------
1 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
index 85ea56e..b7d50e8 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() {
- sid = 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,11 +37,11 @@
{
editBackAction = () =>
{
- if (string.IsNullOrEmpty(r.sid))
+ if (string.IsNullOrEmpty(r.roomId))
{
for (int i = 0; i < roomsListView.ChildrenCount; )
{
- if (roomsListView.GetChildren(i).Tag.ToString() == r.name + "line" || roomsListView.GetChildren(i).Tag.ToString() == r.name + "row")
+ if (roomsListView.GetChildren(i).Tag.ToString() == r.roomName + "line" || roomsListView.GetChildren(i).Tag.ToString() == r.roomName + "row")
{
roomsListView.GetChildren(i).RemoveFromParent();
}
@@ -65,7 +53,7 @@
}
else
{
- btnRoomName.Text = r.floorName + r.name;
+ btnRoomName.Text = r.floorName + r.roomName;
btnBg.ImagePath = r.backgroundImage;
}
};
@@ -74,7 +62,11 @@
roomRow.RemoveFromParent();
};
- var skipPage = new RoomEditPage(r, StringId.EditRoomInfo, editBackAction, deleteAction);
+ Action modifyImageAction = () => {
+ ImageUtlis.Current.LoadLocalOrNetworkImages(r.backgroundImage, btnBg);
+ };
+
+ var skipPage = new RoomEditPage(r, editBackAction, deleteAction, modifyImageAction);
MainPage.BasePageView.AddChidren(skipPage);
skipPage.LoadPage();
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
--
Gitblit v1.8.0