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