public void Refresh() { RoomCollectionV.Clear(); foreach (var room in _hotel.GetAllRoomsWithBookings()) { RoomCollectionV.Add(room); } SortRoomsSelectedTypeV = SortRoomsTypesV[0]; ShownDateTimeV = DateTime.Now.Date; }
public void Refresh() { RoomCollection.Clear(); foreach (var room in _hotel.GetAllRoomsWithBookings()) { RoomCollection.Add(new RoomModel(room)); } SortRoomsSelectedType = SortRoomsTypes[0]; ShownDateTime = DateTime.Now.Date; }