Ejemplo n.º 1
0
        private void outputWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (outputWindowToolStripMenuItem.Checked)
            {
                if (UIConsole != null)
                {
                    UIConsole.Hide();
                }

                outputWindowToolStripMenuItem.Checked = false;
            }
            else
            {
                if (UIConsole == null)
                {
                    UIConsole = new ConsoleOutput(this);

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

                outputWindowToolStripMenuItem.Checked = true;
            }
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            // add UI console
            UIConsole = new ConsoleOutput(this);
            UIConsole.Show(dockPanel1, DockState.DockBottom);
            outputWindowToolStripMenuItem.Checked = true;
        }