void EnsureTimelineInitialized() { if (timelineForm != null) { return; } EnsureStateInspectorInitialized(); var viewObjects = postprocessingViewsFactory.CreateTimelineViewObjects(); timelineForm = viewObjects.Item1; var view = viewObjects.Item2; timelineModel = new LogJoint.Postprocessing.Timeline.TimelineVisualizerModel( postprocessorsManager, logSourcesManager, shortNames, logSourceNamesProvider ); timelinePresenter = new TimelineVisualizer.TimelineVisualizerPresenter( timelineModel, view, stateInspectorPresenter, new Common.PresentationObjectsFactory(postprocessorsManager, logSourcesManager, changeNotification, alerts), loadedMessagesPresenter, bookmarks, storageManager, presentersFacade, shortNames, changeNotification, colorTheme ); FormCreated?.Invoke(this, new PostprocessorOutputFormCreatedEventArgs(ViewControlId.Timeline, timelineForm, timelinePresenter)); }
void EnsureTimelineInitialized() { if (timelineForm != null) { return; } EnsureStateInspectorInitialized(); var viewObjects = CreateTimelineViewObjects(); timelineForm = viewObjects.Item1; var view = viewObjects.Item2; timelineModel = new LogJoint.Postprocessing.Timeline.TimelineVisualizerModel( app.Model.Postprocessing.PostprocessorsManager, app.Model.SourcesManager, app.Model.Postprocessing.ShortNames, app.Model.Postprocessing.LogSourceNamesProvider ); timelinePresenter = new Presenters.Postprocessing.TimelineVisualizer.TimelineVisualizerPresenter( timelineModel, view, stateInspectorPresenter, new Presenters.Postprocessing.Common.PresentationObjectsFactory(app.Model.Postprocessing.PostprocessorsManager, app.Model.SourcesManager), app.Presentation.LoadedMessages, app.Model.Bookmarks, app.Model.StorageManager, app.Presentation.Facade, app.Model.Postprocessing.ShortNames ); FormCreated?.Invoke(this, new PostprocessorOutputFormCreatedEventArgs(ViewControlId.Timeline, timelineForm, timelinePresenter)); }