PumpEventOccuredEventArgs.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/PumpEventOccuredEventArgs.cs $
  4. *
  5. * 5 07-03-14 7:50 roger.månsson
  6. * Documentation.
  7. *
  8. * 4 07-03-01 17:48 roger.mnsson
  9. * Added ToString()
  10. *
  11. * 3 07-02-16 9:59 roger.m�ånsson
  12. * FxCop changes
  13. *
  14. * 2 07-01-09 9:28 roger.månsson
  15. * Documentation fixes
  16. *
  17. * 1 07-01-08 16:10 roger.månsson
  18. * Created
  19. */
  20. #endregion
  21. using System;
  22. namespace Wayne.ForecourtControl
  23. {
  24. /// <summary>
  25. /// Event argument for a PumpEvent, specifying that a certain event has occured on a pump.
  26. /// </summary>
  27. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Occured")]
  28. public class PumpEventOccuredEventArgs : EventArgs
  29. {
  30. #region Fields
  31. private PumpEventType eventType;
  32. #endregion
  33. #region Construction
  34. /// <summary>
  35. /// Initializes a new instance of the PunpEventOccuredEventArgs class.
  36. /// </summary>
  37. /// <param name="eventType">The event type that occured.</param>
  38. public PumpEventOccuredEventArgs(PumpEventType eventType)
  39. {
  40. this.eventType = eventType;
  41. }
  42. #endregion
  43. #region Properties
  44. /// <summary>
  45. /// The type of the Event
  46. /// </summary>
  47. public PumpEventType EventType
  48. {
  49. get { return eventType; }
  50. }
  51. #endregion
  52. #region Methods
  53. /// <summary>
  54. /// Returns a string representation of the object.
  55. /// </summary>
  56. /// <returns></returns>
  57. public override string ToString()
  58. {
  59. return string.Format(System.Globalization.CultureInfo.InvariantCulture, "PumpEventOccuredEventArgs, event={0}", eventType);
  60. }
  61. #endregion
  62. }
  63. }