private void btnAjouter_Click(object sender, EventArgs e) { FormEvenement formEvenement = new FormEvenement(); if (formEvenement.ShowDialog() == DialogResult.OK) { RefreshListe(); } }
private void btnModifier_Click(object sender, EventArgs e) { if (lsvEvenement.SelectedItems.Count == 1) { FormEvenement formEvenement = new FormEvenement(((Evenement)(lsvEvenement.SelectedItems[0].Tag)).Id); if (formEvenement.ShowDialog() == DialogResult.OK) { RefreshListe(); } } }