| | |
| | | |
| | | #endregion |
| | | Room room; |
| | | int pageTitleId; |
| | | int rowCount = 1; |
| | | Action backAction; |
| | | |
| | |
| | | /// <param name="tId"></param> |
| | | /// <param name="action"></param> |
| | | /// <param name="delAction">删除房间事件</param> |
| | | public RoomEditPage(Room r, int tId, Action action, Action delAction) |
| | | 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() |
| | | { |
| | |
| | | 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); |