public void GetListOfBoxNumbers() { Boxes = new ObservableCollection <Box>(_db.GetAllBoxes()); foreach (var box in Boxes) { box_list.Add(box.BoxNumber); } }
/// <summary> /// Retrieves all Boxes from the database /// </summary> public void GetBoxes() { Boxes = new ObservableCollection <Box>(_db.GetAllBoxes()); }
/// <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()); }