private void ajouterSousFamilleButton_Click(object sender, EventArgs e) { FormSaveSousFamille saveSF = new FormSaveSousFamille(); saveSF.ShowDialog(this); LoadSousFamilles(); }
private void modifierSousFamilleButton_Click(object sender, EventArgs e) { if (sousFamillesListView.SelectedIndices.Count > 0) { int aIndex = sousFamillesListView.SelectedIndices[0]; FormSaveSousFamille saveSF = new FormSaveSousFamille(sousFamilles[aIndex]); saveSF.ShowDialog(this); LoadSousFamilles(); } }