public override bool Setup() { using (SetupDialog setup = new SetupDialog(_data)) { if (setup.ShowDialog() == DialogResult.OK) { SerialPort port = setup.Port; if (port != null) { initModule(); return _data.IsValid; } } } return false; }
public override bool Setup() { using (SetupDialog setup = new SetupDialog(_data)) { if (setup.ShowDialog() == DialogResult.OK) { SerialPort port = setup.Port; if (port != null) { initModule(); return(_data.IsValid); } } } return(false); }