//commencer le tour private void CommencerTour_Click(object sender, EventArgs e) { TerminerTour.Show(); Main.Show(); CommencerTour.Hide(); DebutPartie.Hide(); }
public Debut() { InitializeComponent(); groupeBoxNomJoueur.Hide(); DebutPartie.Hide(); joueurs = new ArrayList(); }
//Début de partie private void DebutPartie_Click(object sender, EventArgs e) { TerminerTour.Show(); Main.Show(); CommencerTour.Show(); DebutPartie.Hide(); Random r = new Random(); int count = 0; foreach (RadioButton rdo in Main.Controls.OfType <RadioButton>()) { if (count < 3) { rdo.Text = lc[r.Next(lc.Count)].Nom; count++; } } }