private void delete_Click(object sender, EventArgs e) { if (idTxt.Text != "") { if (Examen.DeleteExamen(int.Parse(idTxt.Text))) { MessageBox.Show("Examen Supprimé"); resetControls(); loadExamen(); } } }