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; }
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; }