private bool OpenSerial_port() { if (null == serial_port) { serial_port = new Serial_Port(); serial_port.Name = Properties.Settings.Default.Setting_serial_no; serial_port.Baud = Convert.ToInt32(Properties.Settings.Default.Setting_baud); serial_port.Charset = Properties.Settings.Default.Setting_charset; } return(serial_port.Open()); }
public Command_Execute(Serial_Port serial_port) { this.serial_port = serial_port; }