public static void StopTaskById(int id) { DevStdTask t = FindTaskById(id); if (t != null) { t.Abort(); } }
public static void StopTaskByName(string name) { DevStdTask t = FindTaskByName(name); if (t != null) { t.Abort(); } }