コード例 #1
0
ファイル: Form1.cs プロジェクト: fxbit/FxGraphicsEngine
        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;
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: fxbit/FxGraphicsEngine
        public Form1()
        {
            InitializeComponent();

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