Beispiel #1
0
        public WindowManager(ITheme theme, RDMPMainForm mainForm, RefreshBus refreshBus, DockPanel mainDockPanel, IRDMPPlatformRepositoryServiceLocator repositoryLocator, ICheckNotifier globalErrorCheckNotifier)
        {
            _windowFactory = new WindowFactory(repositoryLocator, this);
            ActivateItems  = new ActivateItems(theme, refreshBus, mainDockPanel, repositoryLocator, _windowFactory, this, globalErrorCheckNotifier);

            _mainDockPanel = mainDockPanel;

            MainForm          = mainForm;
            RepositoryLocator = repositoryLocator;

            Navigation = new NavigationTrack <DockContent>((c) => c.ParentForm != null, (c) => c.Activate());
            mainDockPanel.ActiveDocumentChanged += mainDockPanel_ActiveDocumentChanged;
        }
Beispiel #2
0
        public WindowManager(ITheme theme, RDMPMainForm mainForm, RefreshBus refreshBus, DockPanel mainDockPanel, IRDMPPlatformRepositoryServiceLocator repositoryLocator, ICheckNotifier globalErrorCheckNotifier)
        {
            _windowFactory = new WindowFactory(repositoryLocator, this);
            ActivateItems  = new ActivateItems(theme, refreshBus, mainDockPanel, repositoryLocator, _windowFactory, this, globalErrorCheckNotifier);

            GlobalExceptionHandler.Instance.Handler = (e) => globalErrorCheckNotifier.OnCheckPerformed(new CheckEventArgs(e.Message, CheckResult.Fail, e));

            _mainDockPanel = mainDockPanel;

            MainForm          = mainForm;
            RepositoryLocator = repositoryLocator;

            Navigation = new NavigationTrack <INavigation>(c => c.IsAlive, (c) => c.Activate(ActivateItems));
            mainDockPanel.ActiveDocumentChanged += mainDockPanel_ActiveDocumentChanged;
            ActivateItems.Emphasise             += RecordEmphasis;
        }