コード例 #1
0
        private void RefreshCurrentGroup()
        {
            CurrentGroup.Clear();
            int startIndex = _pageIndex * PAGE_SIZE;

            for (int i = 0; i < PAGE_SIZE; i++)
            {
                if (startIndex + i < _itemList.Count)
                {
                    CurrentGroup.Add(_itemList[startIndex + i]);
                    if (startIndex + i == _selectedIndex)
                    {
                        _itemList[startIndex + i].Selected = true;
                    }
                }
            }
        }