Example #1
0
        internal static List <LogRow> GetPreviousLogRecords(GetRecordsDelegate GetRecordMethod, int CurrentMin, int JumpLevel)
        {
            List <LogRow> Records   = new List <LogRow>();
            int           JumpCount = GetJumpCount(JumpLevel);

            if (CurrentMin <= 1)
            {
                IronUI.ShowLogBottomStatus("Reached beginning of the log. Cannot go back further.", true);
                return(Records);
            }
            int StartIndex = CurrentMin - IronLog.MaxRowCount - JumpCount - 1;

            Records = GetRecordMethod(StartIndex, IronLog.MaxRowCount);
            return(Records);
        }
Example #2
0
 internal static List<LogRow> GetPreviousLogRecords(GetRecordsDelegate GetRecordMethod, int CurrentMin, int JumpLevel)
 {
     List<LogRow> Records = new List<LogRow>();
     int JumpCount = GetJumpCount(JumpLevel);
     if (CurrentMin <= 1)
     {
         IronUI.ShowLogBottomStatus("Reached beginning of the log. Cannot go back further.", true);
         return Records;
     }
     int StartIndex = CurrentMin - IronLog.MaxRowCount - JumpCount - 1;
     Records = GetRecordMethod(StartIndex, IronLog.MaxRowCount);
     return Records;
 }