Exemple #1
0
        private void RandomButton_Click(object sender, EventArgs e)
        {
            NewMasTextBox.Clear();
            TimerSec.Clear();
            Random rnd  = new Random();
            int    n    = rnd.Next(1, 1000);
            string line = null;

            for (int i = 0; i < n - 1; i++)
            {
                line += rnd.Next(-100000, 100000);
                if (i % 8 == 0 && i != 0)
                {
                    line += '\n';
                }
                else
                {
                    line += " ";
                }
            }
            line += rnd.Next(-10000, 10000);
            MainMasTextBox.Text = line;
        }
Exemple #2
0
 private void Clear_Click(object sender, EventArgs e)
 {
     MainMasTextBox.Clear();
     NewMasTextBox.Clear();
     TimerSec.Clear();
 }