private void button1_Click(object sender, EventArgs e) { if (Check()) { WorkWithBD.AddTournament(textBox1.Text, comboBox1.Text); this.Close(); } }