Exemplo n.º 1
0
        private void StackPanel_MouseDown(object sender, MouseButtonEventArgs e)
        {
            AddRoom WindowAddRoom = new AddRoom();

            WindowAddRoom.ShowDialog();

            dataGrid.ItemsSource = null;
            dataGrid.ItemsSource = roomProvider.GetAllRooms();
        }
Exemplo n.º 2
0
 public List <Room> GetRooms()
 {
     return(roomProvider.GetAllRooms().ToList());
 }