private void btAdd_Click(object sender, EventArgs e) { if (informer.AddCompetition(name, subject, place, date, region)) { this.Close(); } else { MessageBox.Show("The competition has been alredy added"); } }