public void Setup() { SetupDialog dialog = new SetupDialog(this.m_setupNode, this.m_serialPort); if (dialog.ShowDialog() == DialogResult.OK) { this.m_serialPort = dialog.SelectedPort; this.m_useRamps = dialog.Ramps; } }