/// <summary> /// Get a list of Rooms that the Box could be in /// </summary> public void GetListOfRooms() { Rooms = new ObservableCollection <Room>(db.GetAllRooms()); foreach (var room in Rooms) { room_list.Add(room.Name); } }
public void GetRooms() { Rooms = new ObservableCollection <Room>(_db.GetAllRooms()); }
/// <summary> /// Updates the list of items, boxes and rooms from the database /// </summary> public void Refresh() { this.items = new ObservableCollection <Item>(_db.GetAllItems()); this.boxes = new ObservableCollection <Box>(_db.GetAllBoxes()); this.rooms = new ObservableCollection <Room>(_db.GetAllRooms()); }