public void RemoveTeam() { AvailibleTeams.Add(SelectedTeamToRemove); SelectedTeams.Remove(SelectedTeamToRemove); NotifyOfPropertyChange(() => CanCreateTournament); }
private void removeSelectedTeamButton_Click(object sender, RoutedEventArgs e) { TeamModel t = (TeamModel)tournamentTeamsListBox.SelectedItem; if (t != null) { SelectedTeams.Remove(t); AvailableTeams.Add(t); if (AvailableTeams.Count > 0) { selectTeamDropDown.SelectedIndex = 0; } } }