private void button2_Click(object sender, EventArgs e) { HELP hell = new HELP(); SH_1 dell1 = hell.Show; SH_2 dell2 = hell.Show; SH_3 dell3 = hell.Show; Sh1 = dell1; Sh2 = dell2; Sh3 = dell3; switch (Choice.choice) { case 1: { richTextBox1.Text = Sh1(football_pl, count); MessageBox.Show("Готово!!!"); }; break; case 2: { richTextBox1.Text = Sh2(bascketball_pl, count); MessageBox.Show("Готово!!!"); }; break; case 3: { richTextBox1.Text = Sh3(hockey_pl, count); MessageBox.Show("Готово!!!"); }; break; } richTextBox1.Visible = true; }
public Form2() { InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; HELP q = new HELP(); IN_1 del_1 = q.Input; IN_2 del_2 = q.Input; IN_3 del_3 = q.Input; Inputed_1 = del_1; Inputed_2 = del_2; Inputed_3 = del_3; }