FuelPriceChangeEventArgs.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/FuelPriceChangeEventArgs.cs $
  4. *
  5. * 2 07-11-14 20:20 roger.månsson
  6. * Added ToString() method.
  7. *
  8. * 1 07-10-18 17:13 roger.månsson
  9. * Created.
  10. */
  11. #endregion
  12. using System;
  13. namespace Wayne.ForecourtControl
  14. {
  15. /// <summary>
  16. /// Event argument for the IForecourtControl.OnFuelPriceChange event.
  17. /// </summary>
  18. public class FuelPriceChangeEventArgs : EventArgs
  19. {
  20. #region Fields
  21. int fuelPeriodId;
  22. #endregion
  23. #region Construction
  24. /// <summary>
  25. /// Initializes a new instance of the FuelPriceChangeEventArgs class.
  26. /// </summary>
  27. /// <param name="fuelPeriodId">The Id for new fuel period that has been started after the fuel price change.</param>
  28. public FuelPriceChangeEventArgs(int fuelPeriodId)
  29. {
  30. this.fuelPeriodId = fuelPeriodId;
  31. }
  32. #endregion
  33. #region Properties
  34. /// <summary>
  35. /// The Id for new fuel period that has been started after the fuel price change.
  36. /// </summary>
  37. public int FuelPeriodId
  38. {
  39. get { return fuelPeriodId; }
  40. }
  41. #endregion
  42. #region Methods
  43. /// <summary>
  44. /// ToString
  45. /// </summary>
  46. /// <returns></returns>
  47. public override string ToString()
  48. {
  49. return string.Format(System.Globalization.CultureInfo.InvariantCulture, "FuelPriceChangeEventArgs (FuelPeriodId={0})", fuelPeriodId);
  50. }
  51. #endregion
  52. }
  53. }