Пример #1
0
 public ReporterPageManager(
     IEventAggregator eventAggregator,
     UCRepoterListView uCSettingsListView,
     UCReporterContent uCSettingsContent)
 {
     this.eventAggregator = eventAggregator;
     this.ucListView      = uCSettingsListView;
     this.ucContent       = uCSettingsContent;
 }
Пример #2
0
        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);
        }