Пример #1
0
        public RomDesc ChangeSort(SortType sortType)
        {
            if (FilteredList.Count < 1)
            {
                return(null);
            }
            var tmpName      = FilteredList[actIndex].Key;
            var filteredList = Sort(sortType);

            actIndex = FilteredList.FindIndex(c => c.Key == tmpName);
            return(filteredList);
        }
Пример #2
0
 public RomDesc FindRom(RomDesc rom)
 {
     if (rom != null)
     {
         actIndex = FilteredList.FindIndex(c => c.Key == rom.Key);
     }
     UpdateSelection();
     if (actIndex != -1)
     {
         return(FilteredList[actIndex]);
     }
     else
     {
         return(rom);
     }
 }