public void KillThread(string threadName) { ThreadWrapper thread = null; nameThreadMap.TryGetValue(threadName, out thread); if (thread != null) { thread.KillThread(); nameThreadMap.Remove(threadName); } }
public void AttachThread(ThreadWrapper process) { nameThreadMap.Add(process.Name, process); process.Start(); }