private void RelocateInventory(object sender, RoutedEventArgs e) { Room destinationRoom = (Room)RoomsComboBox.SelectedItem; int quantity = Convert.ToInt32(QuantityBox.Text); _roomController.DinamicInventoryRelocation(destinationRoom, _selectedInventory, quantity); _parent.UpdateTable(); this.Close(); }