List<WorkUnitOrder> GetPriorityListForWorkUnit(WorkUnitOrder wuo) { if (wuo.Priority == WorkUnitPriority.Low) return queueLowPriority; else if (wuo.Priority == WorkUnitPriority.Normal) return queueNormalPriority; else return queueHighPriority; }
public bool QueueOrder(WorkUnitOrder wuo) { if (GetWorkUnitOrder(wuo.ID) != null) return false; allWorkUnits.Add(wuo); GetPriorityListForWorkUnit(wuo).Add(wuo); return true; }
public bool WorkUnitComplete(WorkUnitOrder wuo) { return WorkUnitComplete(wuo.ID); }