private void MainForm_Load(object sender, EventArgs e) { Text = "MOSA GDB Debugger v" + CompilerVersion.VersionString; dockPanel.SuspendLayout(true); dockPanel.Theme = new VS2015DarkTheme(); dockPanel.DockTopPortion = 88; controlView.Show(dockPanel, DockState.DockTop); statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50); breakPointView.Show(dockPanel, DockState.DockBottom); watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50); launchView.Show(dockPanel, DockState.Document); displayView.Show(dockPanel, DockState.Document); traceView.Show(dockPanel, DockState.Document); outputView.Show(dockPanel, DockState.Document); //scriptView.Show(dockPanel, DockState.Document); registersView.Show(dockPanel, DockState.DockRight); stackFrameView.Show(registersView.Pane, DockAlignment.Bottom, 0.5); sourceView.Show(dockPanel, DockState.Document); sourceDataView.Show(dockPanel, DockState.Document); var memoryView = new MemoryView(this); memoryView.Show(dockPanel, DockState.Document); symbolView.Show(dockPanel, DockState.Document); methodParametersView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35); instructionView.Show(methodParametersView.PanelPane, DockAlignment.Bottom, 0.85); methodView.Show(instructionView.PanelPane, instructionView); callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25); registersView.Show(); launchView.Show(); dockPanel.ResumeLayout(true, true); if (ImageFile != null) { LaunchImage(); } }
public static void CheckUpdatesAtRuntime() { var model = new Updater(); var view = new LaunchView(); var controller = new LauncherController(view, model); if (!controller.CheckForUpdates()) { MessageBox.Show(Resources.NoUpdatesFound, Resources.NoUpdatesFoundTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (MessageBox.Show(Resources.UpdateAvailableInform, Resources.UpdateAvailableTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) { return; } view.Show(); }