public void AddRoom() { var data = new RoomDisplayData { CameFrom = ModesEnum.Settings, Room = new RoomDTO(), Mode = DisplayModes.Creation }; Storage.Instance.ChangeRoomDisplayData(data); NavigationManager.Instance.Navigate(ModesEnum.Room); }
public void ProcessRoomSelection(int roomNumber) { var room = HotelApiClient.GetInstance().GetRoom(roomNumber); var data = new RoomDisplayData { CameFrom = ModesEnum.Main, Room = room, Mode = DisplayModes.Editing }; Storage.Instance.ChangeRoomDisplayData(data); NavigationManager.Instance.Navigate(ModesEnum.Room); }
public RoomModel() { _data = Storage.Instance.RoomData; }