Beispiel #1
0
 private void EditPlayer()
 {
     if (DataGridPlayer.SelectedItems.Count > 1)
     {
         tournamentController.ActiveIO.ShowMessage("Please select only 1 player you want to edit.");
         return;
     }
     if (DataGridPlayer.SelectedIndex >= 0)
     {
         tournamentController.EditPlayer(new NewPlayerDialog(tournamentController.ActiveTournament.Rule), DataGridPlayer.SelectedIndex);
         RefreshDataGridPlayer(tournamentController.ActiveTournament.Participants);
     }
 }