Пример #1
0
        protected override int GetIndexOf(T item)
        {
            // Get the index from the source

            int index = dataListSource.IndexOf(item);

            // If the index is in the currently visible region then return the index, otherwise return -1

            return(index < currentCount ? index : -1);
        }
Пример #2
0
 protected override int GetIndexOf(T item)
 {
     return(dataListSource.IndexOf(item));
 }