private void supprimerLot(object sender, RoutedEventArgs e) { if (listeLots.SelectedItem is LotViewModel) { LotViewModel toRemove = (LotViewModel)listeLots.SelectedItem; lp.Remove(toRemove); listeLots.Items.Refresh(); LotORM.supprimerLot(selectedLotsId); } }
private void Btn_Sppr(object sender, RoutedEventArgs e) { if (List_Lot.SelectedItem is LotViewModel) { LotViewModel toRemove = (LotViewModel)List_Lot.SelectedItem; lp.Remove(toRemove); List_Lot.Items.Refresh(); LotORM.supprimerLot(selectedLotId); } }