예제 #1
0
 private void buttonAddCurrentPlayerToTournament_Click(object sender, EventArgs e)
 {
     if (playerNumber != -1 && tournamentNumber != -1) {
         AskIfPlayerPaid aipp = new AskIfPlayerPaid();
         aipp.playerNumber = playerNumber;
         aipp.tourNumber = tournamentNumber;
         aipp.setLabelName(playerName + " " + playerFirstName + " a-t-il payé son inscription ?");
         aipp.ShowDialog();
         playersByTournamentTableAdapter.FillByTournament(masterMindDataSet.PlayersByTournament, tournamentNumber);
         playerRegisterTournamentTableAdapter.FillByTournamentAndUnpaid(masterMindDataSet.PlayerRegisterTournament, tournamentNumber);
     } else {
         MessageBox.Show("Il n'y a pas de joueur et/ou de tournoi sélectionné");
     }
 }
예제 #2
0
 private void buttonAddTournamentToPlayer_Click(object sender, EventArgs e)
 {
     DataGridViewRow row = tournamentByNotParticipatingPlayerDataGridView.CurrentRow;
     int tempTourNumber = int.Parse(row.Cells[1].Value.ToString());
     AskIfPlayerPaid aipp = new AskIfPlayerPaid();
     aipp.playerNumber = playerNumber;
     aipp.tourNumber = tempTourNumber;
     aipp.setLabelName(playerName + " " + playerFirstName + " a-t-il payé son inscription ?");
     aipp.ShowDialog();
     tournamentByParticipatingPlayerTableAdapter.FillByParticipatingPlayer(masterMindDataSet.TournamentByParticipatingPlayer, playerNumber);
     tournamentByNotParticipatingPlayerTableAdapter.FillByNotParticipatingPlayer(masterMindDataSet.TournamentByNotParticipatingPlayer, playerNumber);
     playerRegisterTournamentTableAdapter.FillByPlayerAndUnpaid(masterMindDataSet.PlayerRegisterTournament, playerNumber);
 }