AK.F1.Timing.Live.LiveData.ToGridColumn C# (CSharp) Method

ToGridColumn() public static method

Converts the specified timing coloum index to a AK.F1.Timing.Messages.Driver.GridColumn.
public static ToGridColumn ( byte column, SessionType currentSessionType ) : GridColumn
column byte The value to convert.
currentSessionType SessionType The current session.
return GridColumn
        public static GridColumn ToGridColumn(byte column, SessionType currentSessionType)
        {
            try
            {
                return GridColumnMap[(int)currentSessionType - 1][column - 1];
            }
            catch(IndexOutOfRangeException)
            {
                throw Guard.LiveData_UnableToConvertToGridColumn(column, currentSessionType);
            }
        }