private void button1_Click(object sender, EventArgs e) { if (Check()) { WorkWithBD.AddStadium(textBox1.Text, textBox2.Text, numericUpDown1.Value.ToString()); this.Close(); } }