private void btnSave_Click(object sender, EventArgs e) { try { if (qualification != null) { getAttributs(); qualification.Enregistrer(); btnSave.Enabled = false; MessageBox.Show("Enregistrement éffectué", "Enregistrement", MessageBoxButtons.OK, MessageBoxIcon.Information); refresh(); } } catch (Exception ex) { MessageBox.Show("Echec de l'enregistrement " + ex.Message, "Enregistrement", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }