public SerialPortView() { SuspendLayout(); BackColor = SystemColors.ControlDark; #if RTA if (SerialPortName != null) { SP = SerialPortsInRuntime.TryGetSerialPort(SerialPortName); } #endif ResumeLayout(); }
public void OpenSerialPort(List <CCParameter> ps) { string name = ps[0].DisplayValue; SerialPort sp = SerialPortsInRuntime.TryGetSerialPort(name); }