/// <summary> /// Remove Task from all lists of agent /// </summary> /// <param name="pTaskToRemove"></param> public void RemoveTask(Task pTaskToRemove) { int position = PreferredTasks.IndexOf(pTaskToRemove); if (position != -1) { PreferredTasks.RemoveAt(position); } position = ImpossibleTasks.IndexOf(pTaskToRemove); if (position != -1) { ImpossibleTasks.RemoveAt(position); } }
public void AddPreferredTask(Task pPreferred) { PreferredTasks.Add(pPreferred); }