From 171bf03f3664226eeff2b20ee9bd2e914b63a17d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 13 三月 2020 09:18:50 +0800
Subject: [PATCH] 20200313

---
 HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs |   34 +++++++++++++++++++++++++++-------
 1 files changed, 27 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs
index e8e30e0..39fa304 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs
@@ -130,18 +130,28 @@
         #endregion
         Room room;
         int pageTitleId;
+        int rowCount = 1;
+        Action backAction;
 
-        public RoomEditPage(Room r, int tId)
+        public RoomEditPage(Room r, int tId,Action action)
         {
             bodyView = this;
             room = r;
             pageTitleId = tId;
+            backAction = action;
         }
 
         public void LoadPage()
         {
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
-            new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(pageTitleId));
+            if(pageTitleId == StringId.AddRoom)
+            {
+                new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView();
+            }
+            else
+            {
+                new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView(backAction);
+            }
 
             roomBgView = new FrameLayout()
             {
@@ -178,7 +188,7 @@
             roomInfoView = new VerticalScrolViewLayout()
             {
                 Y = roomBgView.Bottom + Application.GetRealHeight(8),
-                Height = Application.GetRealHeight(51 * 5),
+                Height = Application.GetRealHeight(50 * 5),
                 BackgroundColor = CSS_Color.MainBackgroundColor,
                 ScrollEnabled = false,
             };
@@ -203,6 +213,7 @@
                 Height = Application.GetRealHeight(50),
             };
             roomInfoView.AddChidren(roomNameRow);
+            rowCount++;
 
             btnRoomNameTile = new Button()
             {
@@ -243,6 +254,7 @@
                 Height = Application.GetRealHeight(50),
             };
             roomInfoView.AddChidren(floorView);
+            rowCount++;
             btnFloorTitle = new Button()
             {
                 X = Application.GetRealWidth(16),
@@ -260,6 +272,7 @@
                 TextAlignment = TextAlignment.CenterRight,
                 TextColor = CSS_Color.PromptingColor1,
                 TextSize = CSS_FontSize.TextFontSize,
+                Text = room.floor
             };
             floorView.AddChidren(btnFloorInfo);
             btnFloorRight = new Button()
@@ -279,6 +292,7 @@
                 Height = Application.GetRealHeight(50),
             };
             roomInfoView.AddChidren(sharedView);
+            rowCount++;
             btnSharedTitle = new Button()
             {
                 X = Application.GetRealWidth(16),
@@ -315,6 +329,7 @@
                 Height = Application.GetRealHeight(50),
             };
             roomInfoView.AddChidren(functionManagemantView);
+            rowCount++;
             btnFunctionManagementTitle = new Button()
             {
                 X = Application.GetRealWidth(16),
@@ -336,19 +351,24 @@
             functionManagemantView.AddChidren(btnFunctionManagementRight);
             #endregion
 
+            roomInfoView.Height = Application.GetRealHeight(51 * rowCount);
 
             btnOption = new Button()
             {
                 Y = Application.GetRealHeight(617),
                 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.DelRoom
+                TextID = this.pageTitleId == StringId.AddRoom ? StringId.Save : StringId.DeleteRoom
             };
             bodyView.AddChidren(btnOption);
 
-
-
+            if (MainPage.Increase)
+            {
+                btnOption.Y = Application.GetRealHeight(607);
+                btnOption.Height = Application.GetRealHeight(60);
+            }
 
             LoadEventList();
         }
@@ -360,7 +380,7 @@
         {
             pictureOptionView = new FrameLayout()
             {
-                BackgroundColor = 0x99000000,
+                BackgroundColor = CSS_Color.DialogTransparentColor1,
             };
             bodyView.AddChidren(pictureOptionView);
 

--
Gitblit v1.8.0