private void NewRoomButton_Click(object sender, RoutedEventArgs e)
        {
            var form = new RoomForm(FormMode.New);

            if (form.ShowDialog() ?? false)
            {
                var room = form.RetrieveFormData();
                RoomFacade.Create(room);
                RoomsListBox.Items.Refresh();
            }
        }
 private void EditRoomButton_Click(object sender, RoutedEventArgs e)
 {
     if (RoomsListBox.SelectedItem is Room selectedRoom)
     {
         var form = new RoomForm(FormMode.Edit, selectedRoom);
         if (form.ShowDialog() ?? false)
         {
             var room = form.RetrieveFormData();
             RoomFacade.Update(room);
             RoomsListBox.Items.Refresh();
         }
     }
 }