示例#1
0
 private void OnRemoveTeam()
 {
     Teams.Add(SelectedTeamToRemove);
     _allTeams.Add(SelectedTeamToRemove);
     _teamsToRemove.Add(SelectedTeamToRemove);
     TeamsToAssociate.Remove(SelectedTeamToRemove);
     SelectedTeamToRemove = null;
 }
示例#2
0
 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();
 }
示例#3
0
 private void OnAddTeam()
 {
     TeamsToAssociate.Add(SelectedTeam);
     Teams.Remove(SelectedTeam);
     SelectedTeam = null;
 }