Example #1
0
        public ViewModelLocator()
        {
            PersonModule = new PersonModule();

            ProductModule = new ProductModule();

            CalculationModule = new CalculationModule();
        }
Example #2
0
 /// <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);
 }