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