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 | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs index 6f65b73..a0e6a01 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomsManagementPage.cs @@ -38,7 +38,7 @@ }; bodyView.AddChidren(roomsListView); - foreach(var room in DB_ResidenceData.residenceData.rooms) + foreach(var room in DB_ResidenceData.rooms) { LoadRoomRow(room); } @@ -68,12 +68,19 @@ var btnBg = new Button() { - Y = Application.GetRealHeight(0-(192 - 92) / 2), + 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() { @@ -90,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,btnRoomName,btnBg); + btnShadow.MouseUpEventHandler += (sender, e) => + { + LoadEvent_SkipEditRoomPage(room, btnRoomName, btnBg); }; } -- Gitblit v1.8.0