コード例 #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;
 }