private void GenerateTask() { step += 1; txbResult.Text = ""; lblTask.Text = "Закончите обработку сообщения под индексом "; switch (step) { case 1: lblTask.Text += rnd.Next(0, 20); break; case 2: lblTask.Text += rnd.Next(20, 40); break; case 3: lblTask.Text += rnd.Next(40, 60); break; case 4: lblTask.Text += rnd.Next(60, 80); break; default: labForm.showStep(new StepThree(labForm)); this.Close(); return; } lblATask.Text = Convert.ToString(rnd.Next(Int32.MaxValue), 2); lblBTask.Text = Convert.ToString(rnd.Next(Int32.MaxValue), 2); lblCTask.Text = Convert.ToString(rnd.Next(Int32.MaxValue), 2); lblDTask.Text = Convert.ToString(rnd.Next(Int32.MaxValue), 2); lblETask.Text = Convert.ToString(rnd.Next(Int32.MaxValue), 2); }
private void NextStep() { labForm.showStep(new StepTwo(labForm)); this.Close(); }