예제 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="table">The <see cref="Table{TItem}"/> to filter.</param>
        /// <param name="filterParams">The filter parameters.</param>
        public FilteredItemCollection(ITable <TItem> table, TableFilterParams filterParams)
            : base(table.Items)
        {
            _baseCollection = table.Items;
            _columns        = table.Columns;
            _filterParams   = filterParams;

            _filteredList = _filterParams.Column == null
                                                                ? GetFilteredItemCollection(AnyColumnMatch)
                                                                : GetFilteredItemCollection(SingleColumnMatch);

            _baseCollection.ItemsChanged += BaseItemsChanged;
        }
예제 #2
0
 /// <summary>
 /// Filters this table according to the specified filter parameters.
 /// </summary>
 public void Filter(TableFilterParams filterParams)
 {
     _filterParams = filterParams;
     Filter();
 }