/// <summary> /// perform any data error recovery action on all dataviews /// </summary> internal void processRecovery() { for (int i = 0; i < getSize(); i++) { MGData mgd = getMGData(i); if (mgd != null) { for (int j = 0; j < mgd.getTasksCount(); j++) { Task task = mgd.getTask(j); if (task != null) { ((DataView)task.DataView).processRecovery(); } } } } }
/// <summary> /// searches all the MGData objects till it finds the task with the given id /// </summary> /// <param name = "id">the id of the requested task</param> public ITask GetTaskByID(String id) { Task task = null; for (int i = 0; i < getSize() && task == null; i++) { MGData mgd = getMGData(i); if (mgd == null) { // the window connected to the MGData was closed continue; } task = mgd.getTask(id); } return(task); }
/// <summary> /// get the next task using the tasks iterator /// </summary> internal Task getNextTask() { Task task = null; MGData mgd = getMGData(_iteratorMgdIdx); if (mgd == null) { return(null); } task = mgd.getTask(_iteratorTaskIdx); if (task == null) { do { _iteratorMgdIdx++; } while (_iteratorMgdIdx < getSize() && getMGData(_iteratorMgdIdx) == null); _iteratorTaskIdx = 0; return(getNextTask()); } _iteratorTaskIdx++; return(task); }