public ReporterPageManager( IEventAggregator eventAggregator, UCRepoterListView uCSettingsListView, UCReporterContent uCSettingsContent) { this.eventAggregator = eventAggregator; this.ucListView = uCSettingsListView; this.ucContent = uCSettingsContent; }
public IPageManager Apply() { if (ucListView == null) { ucListView = resolverFactory.Resolve <UCRepoterListView>(); } if (ucContent == null) { ucContent = resolverFactory.Resolve <UCReporterContent>(); } eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument { PageDefinition = ucListView }); eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument { PageDefinition = ucContent }); return(this); }