예제 #1
0
        private void HideDebugPanels()
        {
            Settings.Default.DebugToolbar = _showToolbar;
            if (!_showToolbar)
            {
                _toolBarService.HideToolBar(DebugToolBarName);
            }

            _dockingService.HideDockPanel <DebugPanel>();
            _dockingService.HideDockPanel <TrackingWindow>();
            _dockingService.HideDockPanel <CallStack>();
            _dockingService.HideDockPanel <StackViewer>();
            _dockingService.HideDockPanel <ExpressionWindow>();
        }
예제 #2
0
        private void panelMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem menuItem = sender as ToolStripMenuItem;

            if (menuItem == null)
            {
                return;
            }

            Type panelType = menuItem.Tag as Type;

            if (panelType == null)
            {
                throw new InvalidOperationException("Panel item tag does not contain panel type");
            }

            if (menuItem.Checked)
            {
                _dockingService.ShowDockPanel(panelType);
            }
            else
            {
                _dockingService.HideDockPanel(panelType);
            }
        }
예제 #3
0
        private void DockingService_ActiveDocumentChanged(object sender, EventArgs eventArgs)
        {
            var document = _dockingService.ActiveDocument as MapFileEditor;

            if (document == null)
            {
                _dockingService.HideDockPanel <TilesPanel>();
                _dockingService.HideDockPanel <ObjectsPanel>();
                _toolbarService.HideToolBar(MapLayerToolStrip.StripName);
            }
            else
            {
                _dockingService.ShowDockPanel <TilesPanel>();
                _dockingService.ShowDockPanel <ObjectsPanel>();
                _toolbarService.ShowToolBar(MapLayerToolStrip.StripName);

                document.AppModel.PropertyChanged += AppModel_PropertyChanged;
                _toolStrip.UpdateChecks(document.AppModel.CurrentLayer);
            }
        }