private void fireSearchStarted(SuggestedDisplaySortMode suggestedSortMode) { if (SearchStarted != null) { SearchStarted.Invoke(suggestedSortMode); } }
void anatomyController_SearchStarted(SuggestedDisplaySortMode sortMode) { anatomyList.SuppressLayout = true; if (sortMode == SuggestedDisplaySortMode.Alphabetical) { anatomyList.ItemComprarer = naturalSort; } else { anatomyList.ItemComprarer = null; } }
public void displayAnatomy(String searchCaption, IEnumerable <Anatomy> anatomyToDisplay, SuggestedDisplaySortMode sortMode) { fireSuggestSearchCaption(searchCaption); fireSearchStarted(sortMode); fireClearDisplayedAnatomy(); foreach (Anatomy relatedAnatomy in anatomyToDisplay) { fireDisplayAnatomy(relatedAnatomy); } fireSearchEnded(); }