Inheritance: System.EventArgs
Ejemplo n.º 1
0
 private void SerialPortDataReceived( object sender, BytesReceivedEventArgs e )
 {
     lock ( _byteStream )
     {
         _byteStream.AddRange( e.Bytes );
         // Keep reading until there's no complete chunk to be read.
         while ( ReadAndProcessBytes() )
         { }
     }
 }
Ejemplo n.º 2
0
 private void SerialPortDataReceived(object sender, BytesReceivedEventArgs e)
 {
     lock ( _byteStream )
     {
         _byteStream.AddRange(e.Bytes);
         // Keep reading until there's no complete chunk to be read.
         while (ReadAndProcessBytes())
         {
         }
     }
 }