IAllowedFuelGrades.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/IAllowedFuelGrades.cs $
  4. *
  5. * 1 07-01-05 9:00 roger.månsson
  6. * Created
  7. */
  8. #endregion
  9. using System.Runtime.InteropServices;
  10. namespace Wayne.ForecourtControl
  11. {
  12. /// <summary>
  13. /// A collection representing the allowed fuel grades that should be used within the authrorize parameters.
  14. /// </summary>
  15. [ComVisible(true)]
  16. public interface IAllowedFuelGrades
  17. {
  18. /// <summary>
  19. /// Indicates the number of fuel grades.
  20. /// </summary>
  21. int Count { get; }
  22. /// <summary>
  23. /// Indexer returning if the fuel grade is allowed.
  24. /// </summary>
  25. /// <param name="index">Fuel grade</param>
  26. /// <returns>True if the fuel grade is allowed, False if it is disallowed.</returns>
  27. /// <exception cref="FuelGradeOutOfRangeException">Thrown if the fuel grade is out of range.</exception>
  28. bool this[int index] { get; set; }
  29. }
  30. }