public ViewModelLocator() { PersonModule = new PersonModule(); ProductModule = new ProductModule(); CalculationModule = new CalculationModule(); }
/// <summary> /// Creates a new instance of HourlyRateViewModel /// </summary> public HourlyRateViewModel(CalculationModule item) { INotificationService notSvc; module = item; if (!ServicePool.Instance.TryGetService(out notSvc)) { throw new ArgumentNullException(nameof(notSvc)); } notSvc.AddReceiver<SelectedYearChangedMessage>(this, HandleYearChangedMessage); }