public RecipientNavigationViewModel(IRecipientLookupDataService recipientLookupService, IEventAggregator eventAggregator) : base(eventAggregator) { _recipientLookupService = recipientLookupService; Recipients = new ObservableCollection <NavigationItemViewModel>(); _eventAggregator.GetEvent <AfterDetailSavedEvent>().Subscribe(AfterDetailSaved); _eventAggregator.GetEvent <AfterDetailDeletedEvent>().Subscribe(AfterDetailDeleted); }
public PaymentDetailViewModel(IPaymentRepository paymentRepository, IEventAggregator eventAggregator, IMessageDialogService messageDialogService, IRecipientLookupDataService recipientLookupDataService, IPaymentPurposeLookupDataService paymentPurposeLookupDataService) : base(eventAggregator, messageDialogService) { _paymentRepository = paymentRepository; _recipientLookupDataService = recipientLookupDataService; _paymentPurposeLookupDataService = paymentPurposeLookupDataService; eventAggregator.GetEvent <AfterDetailSavedEvent>().Subscribe(AfterDetailSaved); eventAggregator.GetEvent <AfterDetailDeletedEvent>().Subscribe(AfterDetailDeleted); Recipients = new ObservableCollection <LookupItem>(); PaymentPurposes = new ObservableCollection <LookupItem>(); }