FuelPeriodChangeEventArgs.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/SiteModeChangeEventArgs.cs $
  4. *
  5. * 4 07-03-14 7:50 roger.månsson
  6. * Documentation.
  7. *
  8. * 3 07-02-16 9:59 roger.månsson
  9. * FxCop changes
  10. *
  11. * 2 07-01-31 14:00 roger.månsson
  12. * Added ToString() methods
  13. */
  14. #endregion
  15. using System;
  16. using System.Collections.Generic;
  17. using System.Text;
  18. namespace Wayne.ForecourtControl
  19. {
  20. /// <summary>
  21. /// Event argument in the OnSiteModeChange event in ForecourtControl.
  22. /// </summary>
  23. public sealed class FuelPeriodChangeEventArgs : EventArgs
  24. {
  25. #region Fields
  26. int currentPeriod;
  27. int previousPeriod;
  28. int periodType;
  29. #endregion
  30. #region Construction
  31. /// <summary>
  32. /// Constructor
  33. /// </summary>
  34. /// <param name="siteMode"></param>
  35. /// <param name="siteOpen"></param>
  36. public FuelPeriodChangeEventArgs(int currentPeriod, int previousPeriod, int periodType)
  37. {
  38. this.currentPeriod = currentPeriod;
  39. this.previousPeriod = previousPeriod;
  40. this.periodType = periodType;
  41. }
  42. #endregion
  43. #region Properties
  44. public int CurrentPeriod
  45. {
  46. get { return currentPeriod; }
  47. set { currentPeriod = value; }
  48. }
  49. public int PeriodType
  50. {
  51. get { return periodType; }
  52. set { periodType = value; }
  53. }
  54. public int PreviousPeriod
  55. {
  56. get { return previousPeriod; }
  57. set { previousPeriod = value; }
  58. }
  59. #endregion
  60. #region ToString
  61. /// <summary>
  62. /// Returns a string representation of the object.
  63. /// </summary>
  64. /// <returns></returns>
  65. public override string ToString()
  66. {
  67. return string.Format(System.Globalization.CultureInfo.InvariantCulture, "SiteModeChangeEventArgs {{CurrentPeriod={0},PreviousPeriod={1},PeriodType={2}}}", currentPeriod, previousPeriod, periodType);
  68. }
  69. #endregion
  70. }
  71. }