public List<Task> GetAssignedTasks(Engineer e, Task task)
 {
     target = e;
     assignedTasks = new List<Task>();
     Visit((dynamic)task);
     return assignedTasks;
 }
 public double GetPercentComplete(Task task)
 {
     sumPercent = 0;
     numOfPercents = 0;
     Visit((dynamic) task);
     return numOfPercents == 0 ? 0 : sumPercent / numOfPercents;
 }
 public Schedule GetEstimatedSchedule(Task task)
 {
     schedule = new Schedule() { WorkDays = new List<WorkDay>() };
     currentDay = 0;
     hoursFilled = 0;
     Visit((dynamic)task);
     return schedule;
 }
Beispiel #4
0
 public void WriteToFile(string filename, Task task)
 {
     tabs = "";
     using (writer = new StreamWriter(File.OpenWrite(filename)))
     {
         writer.WriteLine("Work Breakdown Structure Outline\n");
         Visit((dynamic) task);
     }
 }
 public int GetOriginalHours(Task task)
 {
     hours = 0;
     Visit((dynamic) task);
     return hours;
 }
 public int GetEstimatedDays(Task task)
 {
     days = 0;
     Visit((dynamic) task);
     return days == 0 ? -1 : days;
 }
 public int GetRevisedHours(Task task)
 {
     hours = 0;
     Visit((dynamic) task);
     return hours;
 }
 public int GetRemainingHours(Task task)
 {
     hours = 0;
     Visit((dynamic) task);
     return hours;
 }
 public List<Engineer> GetAssignedEngineers(Task task)
 {
     assignedEngineers = new List<Engineer>();
     Visit((dynamic) task);
     return assignedEngineers;
 }