private ObservableCollection<GanttBaselineTask> GetTasks(DateTime date) { var ganttAPI = new GanttBaselineTask() { Start = date, End = date.AddDays(2), Title = "Design public API", Description = "Description: Design public API", StartPlannedDate = date.AddDays(1), EndPlannedDate = date.AddDays(2.5) }; var ganttRendering = new GanttBaselineTask() { Start = date.AddDays(2).AddHours(8), End = date.AddDays(4), Title = "Gantt Rendering", Description = "Description: Gantt Rendering", StartPlannedDate = date.AddDays(3), EndPlannedDate = date.AddDays(3).AddHours(12) }; var ganttDemos = new GanttBaselineTask() { Start = date.AddDays(4.5), End = date.AddDays(7), Title = "Gantt Demos", Description = "Description: Gantt Demos", StartPlannedDate = date.AddDays(5), EndPlannedDate = date.AddDays(6) }; var milestone = new GanttBaselineTask() { Start = date.AddDays(7), End = date.AddDays(7).AddHours(1), Title = "Review", Description = "Description: Review", IsMilestone = true, StartPlannedDate = date.AddDays(7), EndPlannedDate = date.AddDays(7).AddHours(15) }; ganttRendering.Dependencies.Add(new Dependency() { FromTask = ganttAPI }); ganttDemos.Dependencies.Add(new Dependency() { FromTask = ganttRendering }); var iterationTask = new GanttBaselineTask() { Start = date, End = date.AddDays(7), Title = "Iteration 1", Children = { ganttAPI, ganttRendering, ganttDemos, milestone }, StartPlannedDate = date }; var iterationTaskEndPlannedDate = GetInterationPlannedDateEnd(iterationTask.Children, date); iterationTask.EndPlannedDate = iterationTaskEndPlannedDate; ObservableCollection<GanttBaselineTask> tasks = new ObservableCollection<GanttBaselineTask>() { iterationTask }; return tasks; }
public BaselineEventInfo(Range<long> timeRange, int index, GanttBaselineTask task) : base(timeRange, index, index) { this.task = task; }
public BaselineEventInfo(Range <long> timeRange, int index, GanttBaselineTask task) : base(timeRange, index, index) { this.task = task; }
private ObservableCollection <GanttBaselineTask> GetTasks(DateTime date) { var ganttAPI = new GanttBaselineTask() { Start = date, End = date.AddDays(2), Title = "Design public API", Description = "Description: Design public API", StartPlannedDate = date.AddDays(1), EndPlannedDate = date.AddDays(2.5) }; var ganttRendering = new GanttBaselineTask() { Start = date.AddDays(2).AddHours(8), End = date.AddDays(4), Title = "Gantt Rendering", Description = "Description: Gantt Rendering", StartPlannedDate = date.AddDays(3), EndPlannedDate = date.AddDays(3).AddHours(12) }; var ganttDemos = new GanttBaselineTask() { Start = date.AddDays(4.5), End = date.AddDays(7), Title = "Gantt Demos", Description = "Description: Gantt Demos", StartPlannedDate = date.AddDays(5), EndPlannedDate = date.AddDays(6) }; var milestone = new GanttBaselineTask() { Start = date.AddDays(7), End = date.AddDays(7).AddHours(1), Title = "Review", Description = "Description: Review", IsMilestone = true, StartPlannedDate = date.AddDays(7), EndPlannedDate = date.AddDays(7).AddHours(15) }; ganttRendering.Dependencies.Add(new Dependency() { FromTask = ganttAPI }); ganttDemos.Dependencies.Add(new Dependency() { FromTask = ganttRendering }); var iterationTask = new GanttBaselineTask() { Start = date, End = date.AddDays(7), Title = "Iteration 1", Children = { ganttAPI, ganttRendering, ganttDemos, milestone }, StartPlannedDate = date }; var iterationTaskEndPlannedDate = GetInterationPlannedDateEnd(iterationTask.Children, date); iterationTask.EndPlannedDate = iterationTaskEndPlannedDate; ObservableCollection <GanttBaselineTask> tasks = new ObservableCollection <GanttBaselineTask>() { iterationTask }; return(tasks); }