From 7d005a7618e3d7a80d8ede3baf6ecc4bf8019cd5 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 01 九月 2020 15:22:09 +0800 Subject: [PATCH] 2020-09-01 --- HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs index f9a05fd..a0e6a01 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs @@ -28,7 +28,8 @@ { bodyView.BackgroundColor = CSS_Color.BackgroundColor; LoadEvent_SkipAddRoomPage(); - new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.RoomsManagement), "rooms", skipAddRoomAction); + new TopViewDiv(bodyView, Language.StringByID(StringId.RoomsManagement)).LoadTopView("rooms",skipAddRoomAction); + //new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.RoomsManagement), "rooms", skipAddRoomAction); roomsListView = new VerticalScrolViewLayout() { @@ -37,7 +38,7 @@ }; bodyView.AddChidren(roomsListView); - foreach(var room in DB_ResidenceData.residenceData.rooms) + foreach(var room in DB_ResidenceData.rooms) { LoadRoomRow(room); } @@ -67,11 +68,19 @@ var btnBg = new Button() { - Y = Application.GetRealHeight(0-(350 - 92) / 2), - Height = Application.GetRealHeight(350), + Y = Application.GetRealHeight(0 - (192 - 92) / 2), + Height = Application.GetRealHeight(192), UnSelectedImagePath = room.backgroundImage, + Radius = (uint)Application.GetRealWidth(12), }; roomRow.AddChidren(btnBg); + + //ImageView imageView = new ImageView() + //{ + // Height = Application.GetRealHeight(92), + // Radius = (uint)Application.GetRealWidth(12), + //}; + //roomRow.AddChidren(imageView); var btnShadow = new Button() { @@ -88,12 +97,13 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.MainBackgroundColor, TextSize = CSS_FontSize.SubheadingFontSize, - Text = room.floor + " " + room.name, + Text = room.floorName + room.name, }; roomRow.AddChidren(btnRoomName); - btnShadow.MouseUpEventHandler += (sender, e) => { - LoadEvent_SkipEditRoomPage(room); + btnShadow.MouseUpEventHandler += (sender, e) => + { + LoadEvent_SkipEditRoomPage(room, btnRoomName, btnBg); }; } -- Gitblit v1.8.0