Exemple #1
0
        /// <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);
            }
        }
Exemple #2
0
 public void GetRooms()
 {
     Rooms = new ObservableCollection <Room>(_db.GetAllRooms());
 }
Exemple #3
0
 /// <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());
 }