public void AddFilter(ConsoleViewFilterBase filter) { if (filter == null) { throw new NullReferenceException("Filter is null"); } for (int i = 0; i < m_filters.Count; ++i) { ConsoleViewFilterBase 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 AddFilter(ConsoleViewFilterBase filter) { if (filter == null) { throw new NullReferenceException("Filter is null"); } for (int i = 0; i < m_filters.Count; ++i) { ConsoleViewFilterBase 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(ConsoleViewFilterBase filter) { m_filters.Remove(filter); }
public void RemoveFilter(ConsoleViewFilterBase filter) { m_filters.Remove(filter); }