public ucOutputs(MiraDevice p_Device) { InitializeComponent(); m_Device = p_Device; // Create the main Mira logging page m_MiraPage = new TabPage { Text = "Mira Output", }; m_MiraOutput = new TextBox { ReadOnly = true, Dock = DockStyle.Fill, Multiline = true }; m_MiraPage.Controls.Add(m_MiraOutput); Program.StatusChanged += OnMiraStatuschanged; tcOutputs.TabPages.Add(m_MiraPage); PopulateOutputs(); }
private void mmuConnect_Click(object sender, EventArgs e) { var s_Dialog = new frmIpAddress(); if (s_Dialog.ShowDialog() != DialogResult.OK) { return; } var s_Device = new MiraDevice(s_Dialog.IPAddress, 9999); var s_Result = s_Device.Connection.Connect(); if (!s_Result) { MessageBox.Show($"Could not connect to: {s_Device.Hostname}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Program.SetStatus($"Could not connect to: {s_Device.Hostname}"); return; } MessageBox.Show($"Connected to: {s_Device.Hostname}"); Program.SetStatus($"Connected to: {s_Device.Hostname}"); m_Devices.Add(s_Device); LoadUIForDevice(s_Device); }
public MiraDebugger(MiraDevice p_Device, ProcInfo p_ProcInfo) { // Create a new list to hold our breakpoints m_Breakpoints = new List <Breakpoint>(); // Assign our information ProcessInfo = p_ProcInfo; Device = p_Device; // Set our debugger to the initial state State = DebuggerState.Detach; // Create the new UI elements m_BreakpointControl = new ucBreakpoints(this); m_CallStackControl = new ucCallStack(this); }
private void LoadUIForDevice(MiraDevice p_Device) { //var s_DevConsoleLog = new MiraConsole(p_Device, 9998, "dev_console_log.txt"); //p_Device.AddConsole(9998); var s_Fuck = new Controls.FileTransfer.ucFileTransfer(p_Device); this.Controls.Add(s_Fuck); var s_Device = m_Devices.FirstOrDefault(); if (s_Device == null) { return; } //s_Device.AddConsole("/dev/console"); //new Controls.Console.ucOutputs(s_Device).Show(Program.DockPanel, DockState.DockBottom); }
public ucFileTransfer(MiraDevice p_Device) { InitializeComponent(); m_Device = p_Device; m_RootNode = new TreeNode { Text = "/", ToolTipText = "Root Node" }; var s_LoadingNode = new TreeNode { Tag = c_LoadingTag, Text = "loading...", }; m_RootNode.Nodes.Add(s_LoadingNode); tvDirectories.Nodes.Add(m_RootNode); }