void EnsureSequenceDiagramInitialized()
        {
            if (sequenceDiagramForm != null)
            {
                return;
            }

            EnsureStateInspectorInitialized();

            var viewObjects = CreateSequenceDiagramViewObjects();

            sequenceDiagramForm = viewObjects.Item1;
            var view = viewObjects.Item2;

            sequenceDiagramModel = new LogJoint.Postprocessing.SequenceDiagram.SequenceDiagramVisualizerModel(
                app.Model.Postprocessing.PostprocessorsManager,
                app.Model.SourcesManager,
                app.Model.Postprocessing.ShortNames,
                app.Model.Postprocessing.LogSourceNamesProvider
                );
            sequenceDiagramPresenter = new Presenters.Postprocessing.SequenceDiagramVisualizer.SequenceDiagramVisualizerPresenter(
                sequenceDiagramModel,
                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.Sequence, sequenceDiagramForm, sequenceDiagramPresenter));
        }
Exemplo n.º 2
0
        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));
        }