private void MainForm_Load(object sender, EventArgs e) { Text = "MOSA GDB Debugger v" + CompilerVersion.VersionString; dockPanel.SuspendLayout(true); dockPanel.DockTopPortion = 75; 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); displayView.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); //stackFrameView.Show(dockPanel, DockState.DockRight); var memoryView = new MemoryView(this); memoryView.Show(dockPanel, DockState.Document); symbolView.Show(dockPanel, DockState.Document); instructionView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35); methodView.Show(instructionView.PanelPane, instructionView); callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25); registersView.Show(); dockPanel.ResumeLayout(true, true); CalculateVMHash(); LauncherOptions.SerialConnectionOption = SerialConnectionOption.TCPServer; LauncherOptions.SerialConnectionPort = 1250; if (LauncherOptions.ImageFile != null) { VMProcess = StartQEMU(); } LoadDebugFile(); if (LauncherOptions.AutoStart) { System.Threading.Thread.Sleep(3000); Connect(); } LoadBreakPoints(); LoadWatches(); }
/// <summary> /// Opens a display view with a specified image. /// </summary> /// <param name="imageKey"></param> /// <param name="image"></param> private void OpenDisplayView(string imageKey, Image image) { IDisplayModel displayModel = new DisplayModel(_imageManager, imageKey); DisplayView displayView = new DisplayView(); // Subscribe displayView to displayModel: (displayModel as IDisplayPublisher).Subscribe((displayView as IDisplayListener).OnNewInput); // Initialise displayView with ExecuteDelegate and a collection of Actions to execute: displayView.Initialise(ExecuteCommand, displayModel.LoadImage, displayModel.RotateImage, displayModel.FlipImage, displayModel.ResizeImage, SaveImage, imageKey); // Set the displayView window title: displayView.Text = "Display View"; // Open displayView: displayView.Show(); }
private void MainForm_Load(object sender, EventArgs e) { dockPanel.SuspendLayout(true); dockPanel.DockTopPortion = 75; 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); displayView.Show(dockPanel, DockState.Document); outputView.Show(dockPanel, DockState.Document); //scriptView.Show(dockPanel, DockState.Document); registersView.Show(dockPanel, DockState.DockRight); //flagView.Show(dockPanel, DockState.DockRight); //stackView.Show(dockPanel, DockState.DockRight); stackFrameView.Show(dockPanel, DockState.DockRight); var memoryView = new MemoryView(this); memoryView.Show(dockPanel, DockState.Document); symbolView.Show(dockPanel, DockState.Document); instructionView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35); methodView.Show(instructionView.PanelPane, instructionView); callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25); registersView.Show(); dockPanel.ResumeLayout(true, true); if (Options.AutoConnect) { Connect(); } if (Options.DebugInfoFile != null) { LoadDebugData.LoadDebugInfo(Options.DebugInfoFile, DebugSource); } }