예제 #1
0
 private void SupprButton(object sender, RoutedEventArgs routedEventArgs)
 {
     if (listeCategorie.SelectedItem is CategorieViewModel)
     {
         CategorieViewModel toRemove = (CategorieViewModel)listeCategorie.SelectedItem;
         lp.Remove(toRemove);
         listeCategorie.Items.Refresh();
         CategorieORM.supprimerCategorie(selectedCategorieId);
     }
 }
예제 #2
0
 private void Btn_Sppr(object sender, RoutedEventArgs e)
 {
     if (List_Categorie.SelectedItem is CategorieViewModel)
     {
         CategorieViewModel toRemove = (CategorieViewModel)List_Categorie.SelectedItem;
         lp.Remove(toRemove);
         List_Categorie.Items.Refresh();
         CategorieORM.supprimerCategorie(selectedCategorieId);
     }
 }
 private void supprimerButton_Click(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (listeCategories.SelectedItem is CategorieViewModel)
     {
         CategorieViewModel toRemove = (CategorieViewModel)listeCategories.SelectedItem;
         c.Remove(toRemove);
         listeCategories.Items.Refresh();
         CategorieORM.supprimerCategorie(selectedCategorieId);
     }
 }