Exemplo n.º 1
0
 public VMYearlyManagement(IEventAggregator eventAggregator)
 {
     this._start               = DateTime.Now.AddYears(-3).Year.ToString();
     this._end                 = DateTime.Now.Year.ToString();
     this._yearlys             = new ObservableCollection <YearlyModel>();
     this._yearlyManager       = UnityContainerFactory.GetUnityContainer().Resolve <IYearlyManager>();
     this._eventAggregator     = eventAggregator;
     this._scptManifestRefresh = this._eventAggregator.GetEvent <ManifestRefreshEvent>().Subscribe(this._manifestRefresh, ThreadOption.UIThread);
     this.Refresh              = new DelegateCommand <string>(RefreshExecute, CanExecuteRefresh);
     this.RefreshYearly(false);
 }
Exemplo n.º 2
0
 public VMYearlyManagement(IEventAggregator eventAggregator)
 {
     this._start = DateTime.Now.AddYears(-3).Year.ToString();
     this._end = DateTime.Now.Year.ToString();
     this._yearlys = new ObservableCollection<YearlyModel>();
     this._yearlyManager = UnityContainerFactory.GetUnityContainer().Resolve<IYearlyManager>();
     this._eventAggregator = eventAggregator;
     this._scptManifestRefresh = this._eventAggregator.GetEvent<ManifestRefreshEvent>().Subscribe(this._manifestRefresh, ThreadOption.UIThread);
     this.Refresh = new DelegateCommand<string>(RefreshExecute, CanExecuteRefresh);
     this.RefreshYearly(false);
 }