Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemFilter{T}"/> class.
 /// </summary>
 /// <param name="parent">The <see cref="SelectableLogMessageFilterBase{TMessage,TUnfilteredCollection}"/> the filter belongs to.</param>
 /// <param name="defaultGroup">Default group to use when no specific group is specified.</param>
 /// <param name="comparer">Comparer to use for sorting items.</param>
 internal ItemFilter(SelectableLogMessageFilterBase <TMessage, TUnfilteredCollection> parent, string defaultGroup, IComparer <T> comparer) : base(parent)
 {
     mStaticItems     = new List <ISelectableLogMessageFilter_ItemInternal <T> >();
     mSortedItems     = new List <ISelectableLogMessageFilter_ItemInternal <T> >();
     mCombinedItems   = new ObservableCollection <ISelectableLogMessageFilter_Item <T> >();
     mAllItemsByValue = new Dictionary <T, ISelectableLogMessageFilter_ItemInternal <T> >();
     Items            = new ReadOnlyObservableCollection <ISelectableLogMessageFilter_Item <T> >(mCombinedItems);
     mEnabledValues   = new HashSet <T>();
     mDefaultGroup    = defaultGroup;
     mComparer        = new ItemValueComparer(comparer);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="IntervalFilter"/> class.
 /// </summary>
 /// <param name="parent">The <see cref="SelectableLogMessageFilterBase{TMessage,TUnfilteredCollection}"/> the filter belongs to.</param>
 internal IntervalFilter(SelectableLogMessageFilterBase <TMessage, TUnfilteredCollection> parent) : base(parent)
 {
     Reset();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FulltextFilter"/> class.
 /// </summary>
 /// <param name="parent">The <see cref="SelectableLogMessageFilterBase{TMessage,TUnfilteredCollection}"/> the filter belongs to.</param>
 internal FulltextFilter(SelectableLogMessageFilterBase <TMessage, TUnfilteredCollection> parent) : base(parent)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FilterBase"/> class.
 /// </summary>
 /// <param name="parent">The <see cref="SelectableLogMessageFilterBase{TMessage,TUnfilteredCollection}"/> the filter belongs to.</param>
 protected FilterBase(SelectableLogMessageFilterBase <TMessage, TUnfilteredCollection> parent)
 {
     Parent = parent;
 }