示例#1
0
文件: TestClass.cs 项目: ibnoe/parkir
 public TestClass()
 {
     SerialComPort port = new SerialComPort();
     port.IncomingData += new IncomingDataEventHandler(port_IncomingData);
     port.SendingData += new SendingDataEventHandler(port_SendingData);
     port.ErrorData += new ErrorDataEventHandler(port_ErrorData);
 }
示例#2
0
        public TestClass()
        {
            SerialComPort port = new SerialComPort();

            port.IncomingData += new IncomingDataEventHandler(port_IncomingData);
            port.SendingData  += new SendingDataEventHandler(port_SendingData);
            port.ErrorData    += new ErrorDataEventHandler(port_ErrorData);
        }