public LCDClass() { // // TODO: Add constructor logic here // SerialPort = new OSerial.Rs232(); SerialPort.CommEvent +=new OSerial.Rs232.CommEventHandler(SerialPort_CommEvent); }
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); }