| | |
| | | #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() |
| | | { |
| | |
| | | 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, |
| | | }; |
| | |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | roomInfoView.AddChidren(roomNameRow); |
| | | rowCount++; |
| | | |
| | | btnRoomNameTile = new Button() |
| | | { |
| | |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | roomInfoView.AddChidren(floorView); |
| | | rowCount++; |
| | | btnFloorTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = room.floor |
| | | }; |
| | | floorView.AddChidren(btnFloorInfo); |
| | | btnFloorRight = new Button() |
| | |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | roomInfoView.AddChidren(sharedView); |
| | | rowCount++; |
| | | btnSharedTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | roomInfoView.AddChidren(functionManagemantView); |
| | | rowCount++; |
| | | btnFunctionManagementTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | |
| | | 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(); |
| | | } |
| | |
| | | { |
| | | pictureOptionView = new FrameLayout() |
| | | { |
| | | BackgroundColor = 0x99000000, |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | | }; |
| | | bodyView.AddChidren(pictureOptionView); |
| | | |