Changeset 13435 for branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding.Views/3.3/ScheduleView.cs
- Timestamp:
- 12/04/15 10:35:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding.Views/3.3/ScheduleView.cs
r12012 r13435 67 67 private void RedrawGanttChart(Schedule content) { 68 68 ResetGanttChart(); 69 int resCount = 0; 70 Random random = new Random(1); 71 foreach (Resource r in content.Resources) { 72 foreach (ScheduledTask t in content.Resources[resCount].Tasks) { 73 int categoryNr = 0; 74 string toolTip = "Task#" + t.TaskNr; 75 string categoryName = "ScheduleTasks"; 76 if (t is ScheduledTask) { 77 categoryNr = ((ScheduledTask)t).JobNr; 78 categoryName = "Job" + categoryNr; 79 toolTip = categoryName + " - " + toolTip; 80 } 81 ganttChart.AddData("Resource" + r.Index, 69 foreach (Resource resource in content.Resources) { 70 foreach (ScheduledTask task in resource.Tasks) { 71 int categoryNr = task.JobNr; 72 string categoryName = "Job" + categoryNr; 73 string toolTip = categoryName + " - " + "Task#" + task.TaskNr; 74 75 ganttChart.AddData("Resource" + resource.Index, 82 76 categoryNr, 83 t .TaskNr,84 t .StartTime,85 t .EndTime,77 task.TaskNr, 78 task.StartTime, 79 task.EndTime, 86 80 toolTip); 87 81 } 88 resCount++;89 82 } 90 }91 92 private void RefreshChartInformations(Schedule content) {93 94 83 } 95 84
Note: See TracChangeset
for help on using the changeset viewer.