Ejemplo n.º 1
0
 private void BtnReset2_Click(object sender, EventArgs e)
 {
     ComM2.ResetText();
     ComM2.Items.Clear();
     RdoLess2.Checked    = false;
     RdoGreater2.Checked = false;
     label1.Text         = Convert.ToString(ComM2.Items.Count);
 }
Ejemplo n.º 2
0
        private void BtnGenerate2_Click(object sender, EventArgs e)
        {
            ComM2.ResetText();
            ComM2.Items.Clear();
            Random r = new Random();

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