private void buttonCreate_Click(object sender, EventArgs e) { try { connectionDB.createNewSector(textBoxSector.Text); sector_Load(null, null); } catch { MessageBox.Show("Error, database is not updated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }