mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
7bd28e4357
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
31 lines
764 B
C#
31 lines
764 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ProcessHacker.Base
|
|
{
|
|
public sealed class ProcessWindowManager
|
|
{
|
|
public delegate TabPage GetTabPageDelegate(int pid);
|
|
|
|
private Dictionary<string, GetTabPageDelegate> _tabPages =
|
|
new Dictionary<string, GetTabPageDelegate>();
|
|
|
|
public void AddTabPage(string name, GetTabPageDelegate tabPage)
|
|
{
|
|
_tabPages.Add(name, tabPage);
|
|
}
|
|
|
|
public IEnumerable<GetTabPageDelegate> GetTabPages()
|
|
{
|
|
return _tabPages.Values;
|
|
}
|
|
|
|
public void RemoveTabPage(string name)
|
|
{
|
|
_tabPages.Remove(name);
|
|
}
|
|
}
|
|
}
|