Beispiel #1
0
 private void ResetBttn2_Click(object sender, EventArgs e)
 {
     RandomCom.ResetText();
     RandomCom.Items.Clear();
     RadioLs2.Checked  = false;
     RadioGrt2.Checked = false;
     label1.Text       = Convert.ToString(RandomCom.Items.Count);
 }
Beispiel #2
0
        private void BtnGenerate2_Click(object sender, EventArgs e)
        {
            RandomCom.ResetText();
            RandomCom.Items.Clear();
            Random r = new Random();

            for (int i = 0; i < r.Next(2, 9) - 1; i++)
            {
                RandomCom.Items.Add(r.Next(10, 99));
            }
            label1.Text = Convert.ToString(RandomCom.Items.Count);
        }