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); }
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); } }