Exemple #1
0
 //commencer le tour
 private void CommencerTour_Click(object sender, EventArgs e)
 {
     TerminerTour.Show();
     Main.Show();
     CommencerTour.Hide();
     DebutPartie.Hide();
 }
Exemple #2
0
        //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++;
                }
            }
        }