void EnsureTimeSeriesInitialized() { if (timeSeriesForm != null) { return; } var viewObjects = postprocessingViewsFactory.CreateTimeSeriesViewObjects(); timeSeriesForm = viewObjects.Item1; var view = viewObjects.Item2; timeSeriesModel = new LogJoint.Postprocessing.TimeSeries.TimelineVisualizerModel( postprocessorsManager, logSourcesManager, shortNames, logSourceNamesProvider ); timeSeriesPresenter = new TimeSeriesVisualizer.TimeSeriesVisualizerPresenter( timeSeriesModel, view, new Common.PresentationObjectsFactory(postprocessorsManager, logSourcesManager, changeNotification, alerts), loadedMessagesPresenter.LogViewerPresenter, bookmarks, presentersFacade, changeNotification ); FormCreated?.Invoke(this, new PostprocessorOutputFormCreatedEventArgs(ViewControlId.TimeSeries, timeSeriesForm, timeSeriesPresenter)); }
void EnsureStateInspectorInitialized() { if (stateInspectorForm != null) { return; } var viewObjects = postprocessingViewsFactory.CreateStateInspectorViewObjects(); stateInspectorForm = viewObjects.Item1; var view = viewObjects.Item2; stateInspectorModel = new LogJoint.Postprocessing.StateInspector.StateInspectorVisualizerModel( postprocessorsManager, logSourcesManager, synchronizationContext, shortNames ); stateInspectorPresenter = new StateInspectorVisualizer.StateInspectorPresenter( view, stateInspectorModel, shortNames, logSourcesManager, loadedMessagesPresenter, bookmarks, threads, presentersFacade, clipboardAccess, sourcesManagerPresenter, colorTheme ); FormCreated?.Invoke(this, new PostprocessorOutputFormCreatedEventArgs(ViewControlId.StateInspector, stateInspectorForm, stateInspectorPresenter)); }
void EnsureSequenceDiagramInitialized() { if (sequenceDiagramForm != null) { return; } EnsureStateInspectorInitialized(); var viewObjects = postprocessingViewsFactory.CreateSequenceDiagramViewObjects(); sequenceDiagramForm = viewObjects.Item1; var view = viewObjects.Item2; sequenceDiagramModel = new LogJoint.Postprocessing.SequenceDiagram.SequenceDiagramVisualizerModel( postprocessorsManager, logSourcesManager, shortNames, logSourceNamesProvider, changeNotification ); sequenceDiagramPresenter = new SequenceDiagramVisualizer.SequenceDiagramVisualizerPresenter( sequenceDiagramModel, view, stateInspectorPresenter, new Common.PresentationObjectsFactory(postprocessorsManager, logSourcesManager, changeNotification, alerts), loadedMessagesPresenter, bookmarks, storageManager, presentersFacade, shortNames, changeNotification, colorTheme ); FormCreated?.Invoke(this, new PostprocessorOutputFormCreatedEventArgs(ViewControlId.Sequence, sequenceDiagramForm, sequenceDiagramPresenter)); }
public PostprocessorOutputFormCreatedEventArgs(ViewControlId id, IPostprocessorOutputForm form, object presenter) { this.Id = id; this.Form = form; this.Presenter = presenter; }