public ProcessGroupNode Add(IProcess aProcess) { var aNode = ProcessNode.From(aProcess); var group = GroupFor(aNode); group.Group(aNode); return(group); }
public void Display(IEnumerable <IProcess> toHookOnStart, IEnumerable <IRunningProcess> unhooked, IEnumerable <IRunningProcess> hookedInactive, IEnumerable <IRunningProcess> hookedActive) { lock (_lock) { toHookOnStart.ForEach(p => _toHookOnStartGroup.AddChild(ProcessNode.From(p))); _unHooked.Add(unhooked.Cast <IProcess>()); _hookedInactive.Add(hookedInactive.Cast <IProcess>()); _hookedActive.Add(hookedActive.Cast <IProcess>()); } ExpandCategoryNodes(); }