Example #1
0
 public FilteredChangeList(IChangeList wrappedList, IChangeFilter filter)
 {
     if (wrappedList == null)
     {
         throw new ArgumentNullException(nameof(wrappedList));
     }
     if (filter == null)
     {
         throw new ArgumentNullException(nameof(filter));
     }
     m_WrappedList = wrappedList;
     m_Filter = filter;
 }
Example #2
0
		private void ProcessFilters(List<ISummaryItem> items, FilterContext fc, IChangeFilter[] iChangeFilter)
		{
			foreach (IChangeFilter icf in iChangeFilter)
			{
				List<SummaryNode> snMatching = icf.ExecuteFilter(items, fc);
				if (snMatching != null)
				{
					foreach (SummaryNode sn in snMatching)
						CategorizedChangesNode.ChildNodes.Add(sn);
				}

				items = icf.GetUnusedItems();
			}
		}
Example #3
0
 public bool Equals(IChangeFilter other) => other is EmptyChangeFilter;