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