示例#1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            dockPanel.SuspendLayout(true);
            dockPanel.DockTopPortion = 150;

            statusView.Show(dockPanel, DockState.DockTop);
            controlView.Show(statusView.PanelPane, DockAlignment.Right, 0.50);
            callStackView.Show(controlView.PanelPane, DockAlignment.Bottom, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            displayView.Show(dockPanel, DockState.Document);
            historyView.Show(dockPanel, DockState.Document);
            assembliesView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);
            scriptView.Show(dockPanel, DockState.Document);
            symbolView.Show(dockPanel, DockState.Document);

            registersView.Show(dockPanel, DockState.DockRight);
            flagView.Show(dockPanel, DockState.DockRight);
            stackView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(dockPanel, DockState.DockRight);

            registersView.Show();

            dockPanel.ResumeLayout(true, true);

            if (CompileOnLaunch != null)
            {
                LoadAssembly(CompileOnLaunch);
                StartSimulator();
            }
        }