private void OnRemoveTeam() { Teams.Add(SelectedTeamToRemove); _allTeams.Add(SelectedTeamToRemove); _teamsToRemove.Add(SelectedTeamToRemove); TeamsToAssociate.Remove(SelectedTeamToRemove); SelectedTeamToRemove = null; }
private void OnAssociateTeams() { _scorerToAssociate.Teams = TeamsToAssociate.ToList(); foreach (var t in _scorerToAssociate.Teams) { _scorerRepo.AddTeamToScorer(_scorerToAssociate, t); } foreach (var t in _teamsToRemove) { _scorerRepo.RemoveTeamFromScorer(_scorerToAssociate, t); } AssociateTeamsCommand.RaiseCanExecuteChanged(); Done(); }
private void OnAddTeam() { TeamsToAssociate.Add(SelectedTeam); Teams.Remove(SelectedTeam); SelectedTeam = null; }