private void btnDelete_Click(object sender, EventArgs e) { if (MessageBox.Show("Etes vous sur de vouloir supprimer ce client", "Suppression", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { clsClient client = new clsClient(); client.Id = Convert.ToInt32(clsGlobal.tbClients.Rows[courant]["ClientID"]); clsAdministrator admin = new clsAdministrator(); client.DeleteClient(client); clsDataAdmin.UpdateClients(clsGlobal.tbClients); } courant = 0; Row2Txt(); }