public static List<Task> GetTasksData()
{
var taskList = new List<Task>();
var year = DateTime.Now.Year;
taskList.Add(new Task { Name = "Documentation", Start = new DateTime(year, 5, 5), End = new DateTime(year, 6, 15) });
taskList.Add(new Task { Name = "Testing and QA", Start = new DateTime(year, 5, 11), End = new DateTime(year, 6, 15) });
taskList.Add(new Task { Name = "Test Plan", Start = new DateTime(year, 4, 26), End = new DateTime(year, 5, 11) });
taskList.Add(new Task { Name = "Development", Start = new DateTime(year, 4, 25), End = new DateTime(year, 6, 15) });
taskList.Add(new Task { Name = "Detail Design", Start = new DateTime(year, 4, 18), End = new DateTime(year, 5, 2) });
taskList.Add(new Task { Name = "Planning", Start = new DateTime(year, 4, 12), End = new DateTime(year, 4, 26) });
taskList.Add(new Task { Name = "Architecture", Start = new DateTime(year, 3, 27), End = new DateTime(year, 4, 12) });
taskList.Add(new Task { Name = "Specifications", Start = new DateTime(year, 3, 14), End = new DateTime(year, 3, 27) });
taskList.Add(new Task { Name = "Preparation", Start = new DateTime(year, 3, 1), End = new DateTime(year, 3, 14) });
return taskList;
}
Public Shared Function GetTasksData() As List(Of Task)
Dim taskList As List(Of Task) = New List(Of Task)()
Dim year As Integer = DateTime.Now.Year
taskList.Add(New Task() With {
.Name = "Documentation",
.Start = New DateTime(year, 5, 5),
.[End] = New DateTime(year, 6, 15)
})
taskList.Add(New Task() With {
.Name = "Testing and QA",
.Start = New DateTime(year, 5, 11),
.[End] = New DateTime(year, 6, 15)
})
taskList.Add(New Task() With {
.Name = "Test Plan",
.Start = New DateTime(year, 4, 26),
.[End] = New DateTime(year, 5, 11)
})
taskList.Add(New Task() With {
.Name = "Development",
.Start = New DateTime(year, 4, 25),
.[End] = New DateTime(year, 6, 15)
})
taskList.Add(New Task() With {
.Name = "Detail Design",
.Start = New DateTime(year, 4, 18),
.[End] = New DateTime(year, 5, 2)
})
taskList.Add(New Task() With {
.Name = "Planning",
.Start = New DateTime(year, 4, 12),
.[End] = New DateTime(year, 4, 26)
})
taskList.Add(New Task() With {
.Name = "Architecture",
.Start = New DateTime(year, 3, 27),
.[End] = New DateTime(year, 4, 12)
})
taskList.Add(New Task() With {
.Name = "Specifications",
.Start = New DateTime(year, 3, 14),
.[End] = New DateTime(year, 3, 27)
})
taskList.Add(New Task() With {
.Name = "Preparation",
.Start = New DateTime(year, 3, 1),
.[End] = New DateTime(year, 3, 14)
})
Return taskList
End Function