Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public Command_Execute(Serial_Port serial_port)
 {
     this.serial_port = serial_port;
 }