public Form2(int a, int b) { f = a; q = b; string s = "Введите данные фигуры номер 1"; InitializeComponent(); outInfo.Text = s; if (a == 1) { textBox4.Dispose(); DX.Dispose(); DY.Dispose(); } else if (a == 2) { textBox2.Dispose(); BX.Dispose(); BY.Dispose(); textBox4.Dispose(); DX.Dispose(); DY.Dispose(); textBox1.Text = "цент"; textBox3.Text = "R"; CY.Dispose(); } }