/// <summary> /// Set a filter on a collection based on a custom delegate /// </summary> /// <param name="CustomChoice"></param> public void SetCustomFilter(CustomChoiceDelegate <T> CustomChoice) { _Filter = string.Empty; _CustomFilter = CustomChoice; RecalcFilter(true); OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1)); }
/// <summary> /// Filtering will be done using this custom delegate /// </summary> /// <param name="CustomChoice"></param> public FilterSortCreator(CustomChoiceDelegate <T> CustomChoice) { _Filter = string.Empty; _CustomChoice = CustomChoice; }