private void connectToolStripMenuItem_Click(object sender, EventArgs e) { TargetConnectionDialog dlg = new TargetConnectionDialog(mDebugger); if (dlg.ShowDialog() == DialogResult.OK) { mDebugger.Connect(dlg.Selection); } }