public static void ResumeAll() { agents.RemoveAll(item => item == null); foreach (AgentTest AT in agents) { AT.Resume(); } }