public void RegisterTask(MainTask task) { tasks.Add (task); }
public void DeregisterTask(MainTask task) { tasks.Remove (task); }