Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public void Activate(ActivateItems activateItems)
 {
     Tab.Activate();
 }
Exemplo n.º 4
0
 public void Activate(ActivateItems activateItems)
 {
     activateItems.RequestItemEmphasis(this, new EmphasiseRequest(Object, 0));
 }