public CashJournalSearchViewModel(ICashJournalRepository cashJournalRepository, IEventAggregator eventAggregator, ILifetimeScope scope, IRegionManager regionManager) : base(scope, eventAggregator, regionManager) { _cashJournalRepository = cashJournalRepository; RefreshJournals(); }
public CashJournalEntryViewModel( ILifetimeScope scope, IRegionManager regionManager, IEventAggregator eventAggregator, ICashJournalRepository cashJournalRepository, ICashJournalEntryRepository repository, ITaxRateRepository taxRateRepository, CashJournalViewModel parent) : base(scope, eventAggregator, regionManager) { _cashJournalRepository = cashJournalRepository; _cashJournalEntryRepository = repository; _taxRateRepository = taxRateRepository; Parent = parent; Parent.PropertyChanged += (sender, args) => { if (args.PropertyName == nameof(Parent.IsActive)) { RaisePropertyChanged(nameof(IsAnyActive)); } }; PropertyChanged += (sender, args) => { if (args.PropertyName == nameof(IsActive)) { RaisePropertyChanged(nameof(IsAnyActive)); } }; RefreshAvailableTaxRates(); RefreshEnabledBindings(); }
public CashJournalViewModel( ILifetimeScope scope, IEventAggregator eventAggregator, IRegionManager regionManager, ICashJournalRepository cashJournalRepository, ICashJournalEntryRepository cashJournalEntryRepository, ITaxRateRepository taxRateRepository) : base(scope, eventAggregator, regionManager) { _cashJournalRepository = cashJournalRepository; _cashJournalEntryRepository = cashJournalEntryRepository; }