| | |
| | | Action editBackAction; |
| | | |
| | | /// <summary> |
| | | /// 加载事件列表 |
| | | /// </summary> |
| | | void LoadEventList() |
| | | { |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跳转到增加房间的界面 |
| | | /// </summary> |
| | | void LoadEvent_SkipAddRoomPage() |
| | | { |
| | | skipAddRoomAction = (type, floor) => |
| | | skipAddRoomAction = () => |
| | | { |
| | | Room newRoom = new Room(); |
| | | editBackAction = () => { |
| | | Action<Room> addRoomBackAction = (newRoom) => |
| | | { |
| | | LoadRoomRow(newRoom); |
| | | }; |
| | | |
| | | var skipPage = new RoomEditPage(newRoom, StringId.AddRoom, editBackAction, null); |
| | | MainPage.BasePageView.AddChidren(skipPage); |
| | | skipPage.LoadPage(); |
| | | var addRoomPage = new AddRoomPage(addRoomBackAction); |
| | | MainPage.BasePageView.AddChidren(addRoomPage); |
| | | addRoomPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | |
| | | roomRow.RemoveFromParent(); |
| | | }; |
| | | |
| | | var skipPage = new RoomEditPage(r, StringId.EditRoomInfo, editBackAction, deleteAction); |
| | | Action modifyImageAction = () => { |
| | | ImageUtlis.Current.LoadLocalOrNetworkImages(r.backgroundImage, btnBg); |
| | | }; |
| | | |
| | | var skipPage = new RoomEditPage(r, editBackAction, deleteAction, modifyImageAction); |
| | | MainPage.BasePageView.AddChidren(skipPage); |
| | | skipPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |