Exemple #1
0
        public TesterForm()
        {
            InitializeComponent();

            // init the console
            UIConsole = new ConsoleOutput();
            UIConsole.Show(dockPanel1, DockState.DockRightAutoHide);
            outputToolStripMenuItem.Checked = true;
        }
Exemple #2
0
        private void outputToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (outputToolStripMenuItem.Checked)
            {
                UIConsole.Hide();
                outputToolStripMenuItem.Checked = false;
            }
            else
            {
                if (UIConsole == null)
                {
                    UIConsole = new ConsoleOutput();

                    // add the viewport to the dock
                    UIConsole.Show(dockPanel1, DockState.DockBottom);
                }
                else
                {
                    // add the viewport to the dock
                    UIConsole.Show(dockPanel1, DockState.DockBottom);
                }
                outputToolStripMenuItem.Checked = true;
            }
        }