void DeleteStandBookConfirmWindow_Closed(object sender, EventArgs e) { ConfirmWindow lConfirmWindow = sender as ConfirmWindow; if (lConfirmWindow.DialogResult == true) { StandBookViewModel.DeleteStandBook(SelectStandBookEntity.StandBook); //documentManagerContext.standbooks.Remove(SelectStandBookEntity.StandBook); //SubmitOperation lSubmitOperation = documentManagerContext.SubmitChanges(); //lSubmitOperation.Completed += SubOperation_Completed; } }
public StandBookZPViewModel() { documentManagerContext = new DocumentManager.Web.DocumentManagerDomainContext(); StandBookList = new ObservableCollection<StandBookEntity>(); TaxPayerTypeEntityDictionary = new Dictionary<int, TaxPayerTypeEntity>(); ProjectTotalMonay = new Dictionary<string, decimal>(); ProjectPartMoney = new Dictionary<string, decimal>(); StandBookViewModel = new StandBookViewModel(); StandBookViewModel.BeginLoadings += BeginLoading; StandBookViewModel.FinishLoadings += FinishLoading; OnInputStandBook = new DelegateCommand(onInputStandBook); OnOutputStandBook = new DelegateCommand(onOutputStandBook); OnDeleteStandBook = new DelegateCommand(onDeleteStandBook, canDeleteStandBook); OnOpenDownloadTempFile = new DelegateCommand(onOpenDownloadTempFile); }
public StandBookZPViewModel() { documentManagerContext = new DocumentManager.Web.DocumentManagerDomainContext(); StandBookList = new ObservableCollection <StandBookEntity>(); TaxPayerTypeEntityDictionary = new Dictionary <int, TaxPayerTypeEntity>(); ProjectTotalMonay = new Dictionary <string, decimal>(); ProjectPartMoney = new Dictionary <string, decimal>(); StandBookViewModel = new StandBookViewModel(); StandBookViewModel.BeginLoadings += BeginLoading; StandBookViewModel.FinishLoadings += FinishLoading; OnInputStandBook = new DelegateCommand(onInputStandBook); OnOutputStandBook = new DelegateCommand(onOutputStandBook); OnDeleteStandBook = new DelegateCommand(onDeleteStandBook, canDeleteStandBook); OnOpenDownloadTempFile = new DelegateCommand(onOpenDownloadTempFile); }