public void RemoveDealClient() { //_investorContext.Deals.Remove(SelectedDeal); Deals.Remove(SelectedDeal); Temp = new ObservableCollection <DealClient>(); OnPropertyChanged("Temp"); //_investorContext.SaveChanges(); }
private void DropDeal(object param) { if (!WinApiMessageBox.ConfirmAction("Снять бронь и удалить данную запись?")) { return; } _context.Deals.Remove(SelectedDeal.Deal); _context.SaveChanges(); Deals.Remove(SelectedDeal); OnPropertyChanged("Deals"); DropDealVisibility = SelectedDealVisibility = Visibility.Collapsed; ToolBarVisibility = Visibility.Visible; }
void ICollectionModifier <Deal> .Remove(Deal entity) => Deals.Remove(entity);
public void Remove(Deal entity) => Deals.Remove(entity);