Esempio n. 1
0
        private void BtnReset2_Click(object sender, EventArgs e)
        {
            Cmb2.ResetText();

            Cmb2.Items.Clear();

            RadLessThan500_2.Checked = false;

            RadGreaterThan500_2.Checked = false;

            label1.Text = Convert.ToString(Cmb2.Items.Count);
        }
Esempio n. 2
0
        private void BtnGenerate2_Click(object sender, EventArgs e)
        {
            Cmb2.ResetText();

            Cmb2.Items.Clear();

            Random r = new Random();

            for (int i = 0; i < r.Next(2, 9) - 1; i++)

            {
                Cmb2.Items.Add(r.Next(10, 99));
            }

            label1.Text = Convert.ToString(Cmb2.Items.Count);
        }