1234567891011121314151617181920212223242526272829303132 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- /*
- * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/IAllowedFuelGrades.cs $
- *
- * 1 07-01-05 9:00 roger.månsson
- * Created
- */
- #endregion
- using System.Runtime.InteropServices;
- namespace Wayne.ForecourtControl
- {
- /// <summary>
- /// A collection representing the allowed fuel grades that should be used within the authrorize parameters.
- /// </summary>
- [ComVisible(true)]
- public interface IAllowedFuelGrades
- {
- /// <summary>
- /// Indicates the number of fuel grades.
- /// </summary>
- int Count { get; }
-
- /// <summary>
- /// Indexer returning if the fuel grade is allowed.
- /// </summary>
- /// <param name="index">Fuel grade</param>
- /// <returns>True if the fuel grade is allowed, False if it is disallowed.</returns>
- /// <exception cref="FuelGradeOutOfRangeException">Thrown if the fuel grade is out of range.</exception>
- bool this[int index] { get; set; }
- }
- }
|