private void GetPage() { _entriesPool.SetPoolActive(false); var pageStartIdx = _currPage * _settings.EntriesPerPage; var pageEndIdx = Math.Min(pageStartIdx + _settings.EntriesPerPage, _fileData.EntriesCount() - 1); _entriesPool.SetEntriesData(_fileData.GetHeaders(), pageStartIdx, _fileData.GetEntries() .Where((v, i) => i >= pageStartIdx && i < pageEndIdx) .ToList()); }