public void AddFilter(CConsoleViewFilterBase filter) { if (filter == null) { throw new NullReferenceException("Filter is null"); } for (int i = 0; i < m_filters.Count; ++i) { CConsoleViewFilterBase f = m_filters[i]; if (f.Priority < filter.Priority) { m_filters.Insert(i, filter); return; } if (f == filter) { return; } } m_filters.Add(filter); }
public void RemoveFilter(CConsoleViewFilterBase filter) { m_filters.Remove(filter); }