예제 #1
0
 public Scanner(string comPort, int baudRate, SCANNER_TYPE st, string name)
 {
     ScannerType = st;
     _ComPort    = comPort;
     _BaudRate   = baudRate;
     _Name       = name;
     _Type       = (int)st;
 }
예제 #2
0
 public Scanner(IPAddress ipAddr, int tcpPort, SCANNER_TYPE st, string name)
 {
     TurnScannerOff    = false;
     IsReading         = false;
     ScannerType       = st;
     _IpAddr           = ipAddr;
     _TcpPort          = tcpPort;
     _Name             = name;
     _Type             = (int)st;
     InternalStopWatch = new Stopwatch();
     _cmdWatcher       = new Stopwatch();
 }