Advertisement
Guest User

Untitled

a guest
May 6th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. public virtual IList<AbstractTask> GetReschedulableTasks() {
  2.  
  3. return Tasks.Where(abstractTask => abstractTask.State != TaskState.Uninitialized &&
  4. abstractTask.State != TaskState.Cancelled &&
  5. abstractTask.State != TaskState.Completed).ToList();
  6.  
  7. }
  8.  
  9. /// <summary>
  10. /// All active tasks related to the current snapshot of the timeline.
  11. /// Active tasks can be modified and rescheduled.
  12. /// </summary>
  13. public virtual IList<AbstractTask> CancelableTasks
  14. {
  15.  
  16. get
  17. {
  18. return Tasks.Where(abstractTask => abstractTask.State != TaskState.Uninitialized &&
  19. abstractTask.State != TaskState.Cancelled &&
  20. abstractTask.State != TaskState.Completed).ToList();
  21. }
  22. }
  23.  
  24. /// <summary>
  25. /// All active tasks related to the timeline. Active tasks can be modified and rescheduled.
  26. /// </summary>
  27. public virtual IList<AbstractTask> ActiveTasks
  28. {
  29. get
  30. {
  31. return Tasks.Where(abstractTask => abstractTask.State != TaskState.Uninitialized &&
  32. abstractTask.State != TaskState.Cancelled &&
  33. abstractTask.State != TaskState.Completed).ToList();
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement