private void BtnReset_Click(object sender, EventArgs e)
 {
     CmbRandom.ResetText();
     CmbRandom.Items.Clear();
     RdoLess.Checked    = false;
     RdoGreater.Checked = false;
 }
        private void BtnGenerate_Click(object sender, EventArgs e)
        {
            CmbRandom.ResetText();
            CmbRandom.Items.Clear();   //Removes all items from Combo
            Random x = new Random();

            for (int i = 0; i < x.Next(1, 50) - 1; i++)
            {
                CmbRandom.Items.Add(x.Next(100, 999));
            }
        }
예제 #3
0
      private void BtnGenerate_Click(object sender, EventArgs e)
      {
          CmbRandom.ResetText();
          CmbRandom.Items.Clear();
          Random r = new Random();

          for (int i = 0; i < r.Next(1, 50) - 1; i++)
          {
              CmbRandom.Items.Add(r.Next(100, 999));
          }
      }
        private void BtnGenrate_Click(object sender, EventArgs e)
        {
            int meme;
            int i;

            CmbRandom.ResetText();
            CmbRandom.Items.Clear();

            //meme = Convert.ToString(y.Next(1, 100));
            // MessageBox.Show(BtnGrandom.Text);
            //this.BtnTextBox.Text = BtnGrandom.Text.ToString();

            for (i = 0; i < M.Next(10, 60) - 1; i++)
            {
                CmbRandom.Items.Add(M.Next(100, 999));
            }
        }
 private void BtnReset_Click(object sender, EventArgs e)
 {
     CmbRandom.ResetText();
     CmbRandom.Items.Clear();
 }