Exemple #1
0
        public _ActiveItem _removeActiveItemAt(List <_ActiveItem> items, int itemIndex)
        {
            int         i    = AnimatedListUtils.binarySearch(items, new _ActiveItem(itemIndex));
            _ActiveItem item = null;

            if (i != -1)
            {
                item = items[i];
                items.RemoveAt(i);
            }
            return(i == -1 ? null : item);
        }
Exemple #2
0
        public _ActiveItem _activeItemAt(List <_ActiveItem> items, int itemIndex)
        {
            int i = AnimatedListUtils.binarySearch(items, new _ActiveItem(itemIndex));

            return(i == -1 ? null : items[i]);
        }