SerialReceivedEventArgs.cs 620 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: Csharp; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2. #if NET_2_0
  3. namespace System.IO.Ports {
  4. public enum SerialReceived
  5. {
  6. EofReceived, /* The event character was received and placed in the input buffer */
  7. ReceivedChars /* A character was received and placed in the input buffer */
  8. }
  9. public class SerialReceivedEventArgs : EventArgs
  10. {
  11. internal SerialReceivedEventArgs (SerialReceived event_type)
  12. {
  13. this.event_type = event_type;
  14. }
  15. // properties
  16. public SerialReceived EventType
  17. {
  18. get {
  19. return event_type;
  20. }
  21. }
  22. SerialReceived event_type;
  23. }
  24. }
  25. #endif