public ShellViewModel(IEventAggregator eventAggregator, IClearStepRunService stepRunService, IClearDateValidator clearDateValidator, [ImportMany] RunStepViewModelBase[] runSteps) { this.DisplayName = "积分清算"; this._clearStepRunService = stepRunService; this._eventAggregator = eventAggregator; this._eventAggregator.Subscribe(this); this.InitizeRunSteps(runSteps); this.InitizeClearDate(clearDateValidator); }
private void InitizeClearDate(IClearDateValidator clearDateValidator) { this._clearDateValidator = clearDateValidator; this.SetClearDate(clearDateValidator.GetDate()); }