Пример #1
0
        public MainForm()
        {
            InitializeComponent();

            rebuildAll = false;


            dockPanel1.Theme          = vS2012LightTheme1;
            ToolStripManager.Renderer = new VS2012ToolStripRenderer();


            outputListBox      = new ColoredListBox();
            outputListBox.Text = "Output";

            output = new DockAnyComponent(outputListBox, "Output", DockAreas.DockBottom);
            output.CloseButtonVisible = false;
            output.DockAreas          = DockAreas.DockBottom;
            output.Show(dockPanel1, DockState.DockBottom);

            terminal           = new TerminalWindow();
            terminal.DockAreas = DockAreas.DockBottom | DockAreas.DockRight | DockAreas.DockTop;
            terminal.Show(dockPanel1, DockState.DockRight);

            hlp = new HelpBrowser();
            terminal.DockAreas = DockAreas.DockBottom | DockAreas.DockRight | DockAreas.DockLeft;
            hlp.Show(dockPanel1, DockState.DockRight);
        }
Пример #2
0
        private void helpBrowserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (hlp.IsDisposed)
            {
                hlp = new HelpBrowser();
                hlp.Show(dockPanel1, DockState.DockRight);
            }

            if (hlp.VisibleState == DockState.Hidden)
            {
                hlp.VisibleState = hlp.DockState;
            }
        }