Ejemplo n.º 1
0
 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);
Ejemplo n.º 4
0
 public void Remove(Deal entity) => Deals.Remove(entity);