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/RoomEditPage.cs | 42 +++++++++++++++++++++++++-----------------
1 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
index d48d638..a43c157 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
@@ -131,34 +131,39 @@
#endregion
Room room;
- int pageTitleId;
int rowCount = 1;
Action backAction;
- public RoomEditPage(Room r, int tId,Action action)
+ /// <summary>
+ /// 鍒犻櫎鎴块棿浜嬩欢
+ /// 2020-12-02 瑙e喅鍒犻櫎鎴块棿鍚庯紝鐣岄潰涓嶅埛鏂板垹闄ゆ埧闂撮棶棰�
+ /// </summary>
+ Action deleteAction;
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="r"></param>
+ /// <param name="tId"></param>
+ /// <param name="action"></param>
+ /// <param name="delAction">鍒犻櫎鎴块棿浜嬩欢</param>
+ public RoomEditPage(Room r, Action action, Action delAction)
{
bodyView = this;
room = r;
- pageTitleId = tId;
backAction = action;
+ this.deleteAction = delAction;
}
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- if (pageTitleId == StringId.AddRoom)
- {
- new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView();
- }
- else
- {
- new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView(backAction);
- }
+ new TopViewDiv(bodyView, Language.StringByID(StringId.EditRoomInfo)).LoadTopView(backAction);
roomBgView = new FrameLayout()
{
Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(224),
+ Height = Application.GetRealWidth(232),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
bodyView.AddChidren(roomBgView);
@@ -168,13 +173,16 @@
Gravity = Gravity.CenterHorizontal,
Y = Application.GetRealWidth(20),
Width = Application.GetRealWidth(343),
- Height = Application.GetRealHeight(184),
+ Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9
//UnSelectedImagePath = room.backgroundImage,
- ImagePath = room.backgroundImage,
+ //ImagePath = room.backgroundImage,
Radius = (uint)Application.GetRealWidth(12),
//Radius = (uint)Application.GetRealWidth(6),
};
roomBgView.AddChidren(btnRoomBg);
+
+ //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶
+ ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, btnRoomBg);
//鎴块棿淇℃伅缂栬緫鍖哄煙
roomInfoView = new VerticalScrolViewLayout()
@@ -225,7 +233,7 @@
TextAlignment = TextAlignment.CenterRight,
TextColor = CSS_Color.PromptingColor1,
TextSize = CSS_FontSize.TextFontSize,
- Text = room.name
+ Text = room.roomName
};
roomNameRow.AddChidren(btnRoomName);
@@ -355,8 +363,8 @@
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
TextAlignment = TextAlignment.Center,
- TextColor = this.pageTitleId == StringId.AddRoom ? CSS_Color.MainColor : CSS_Color.WarningColor,
- TextID = this.pageTitleId == StringId.AddRoom ? StringId.Save : StringId.DeleteRoom,
+ TextColor = CSS_Color.WarningColor,
+ TextID = StringId.DeleteRoom,
TextSize = CSS_FontSize.SubheadingFontSize,
};
bodyView.AddChidren(btnOption);
--
Gitblit v1.8.0