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