private DataObj GetValue(Page page, int rowIndex) { DataObj ret = null; if (page != null && page.Table != null && page.Table.Count() > rowIndex) ret = page.Table.ElementAt(rowIndex); return ret; }
public void ResetPages() { //abort all async tasks _asyncPool.Clear(); _pageMaxNumber = this.RowCount / _pageSize; lock (_cache) { for (int i = 0; i < _cache.Length; i++) { _cache[i] = new Page(_pageMaxNumber * 3 + 1); } _currentTwoPagesPool[0] = new NI(_pageMaxNumber * 3 + 1, 0); _currentTwoPagesPool[1] = new NI(_pageMaxNumber * 3 + 2, 0); } _id = Guid.NewGuid(); }