예제 #1
0
 public LCDClass()
 {
     //
     // TODO: Add constructor logic here
     //
     SerialPort = new OSerial.Rs232();
     SerialPort.CommEvent +=new OSerial.Rs232.CommEventHandler(SerialPort_CommEvent);
 }
예제 #2
0
 public LCDClass()
 {
     //
     // TODO: Add constructor logic here
     //
     SerialPort = new OSerial.Rs232();
     SerialPort.CommEvent +=new OSerial.Rs232.CommEventHandler(SerialPort_CommEvent);
     ConnectionTimer = new System.Timers.Timer(5000);
     ConnectionTimer.Enabled = false;
     ConnectionTimer.Elapsed += new System.Timers.ElapsedEventHandler(ConnectionTimer_Elapsed);
 }