コード例 #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());
        }
コード例 #2
0
ファイル: Command_Execute.cs プロジェクト: chinastyle/GitHub
 public Command_Execute(Serial_Port serial_port)
 {
     this.serial_port = serial_port;
 }