Files
wj32 7bd28e4357 moved branches, tags, trunk to 1.x branch
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-10-25 02:22:46 +00:00

31 lines
751 B
C#

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace ProcessHacker.Base
{
public sealed class ProcessHighlightingManager
{
public delegate bool FilterDelegate(int pid, ref Color color);
private Dictionary<string, FilterDelegate> _filters =
new Dictionary<string, FilterDelegate>();
public void AddFilter(string name, FilterDelegate tabPage)
{
_filters.Add(name, tabPage);
}
public IEnumerable<FilterDelegate> GetFilters()
{
return _filters.Values;
}
public void RemoveFilter(string name)
{
_filters.Remove(name);
}
}
}