Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/11 13:41:25 (13 years ago)
Author:
ascheibe
Message:

#1233 Review comments: renamed Job to Task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs

    r6373 r6721  
    6565          DateTime maxValue = Content.Max(x => x.Count > 0 ? x.Max(y => y.DateTime) : DateTime.MinValue);
    6666          DateTime upperLimit;
    67           if (Content.All(x => x.Count > 0 ? (x.Last().State == JobState.Finished || x.Last().State == JobState.Failed || x.Last().State == JobState.Aborted) : true)) {
     67          if (Content.All(x => x.Count > 0 ? (x.Last().State == TaskState.Finished || x.Last().State == TaskState.Failed || x.Last().State == TaskState.Aborted) : true)) {
    6868            upperLimit = DateTime.FromOADate(Math.Min(DateTime.Now.AddSeconds(10).ToOADate(), maxValue.AddSeconds(10).ToOADate()));
    6969          } else {
     
    7373          for (int i = 0; i < Content.Count; i++) {
    7474            for (int j = 0; j < Content[i].Count - 1; j++) {
    75               if (Content[i][j].State != JobState.Offline)
     75              if (Content[i][j].State != TaskState.Offline)
    7676                AddData(ganttChart, i.ToString(), Content[i][j], Content[i][j + 1], upperLimit);
    7777            }
     
    8585
    8686    public static void SetupCategories(GanttChart ganttChart) {
    87       ganttChart.AddCategory(JobState.Offline.ToString(), Color.Gainsboro);
    88       ganttChart.AddCategory(JobState.Waiting.ToString(), Color.NavajoWhite);
    89       ganttChart.AddCategory(JobState.Paused.ToString(), Color.PaleVioletRed);
    90       ganttChart.AddCategory(JobState.Transferring.ToString(), Color.CornflowerBlue);
    91       ganttChart.AddCategory(JobState.Calculating.ToString(), Color.DarkGreen);
    92       ganttChart.AddCategory(JobState.Finished.ToString(), Color.White);
    93       ganttChart.AddCategory(JobState.Aborted.ToString(), Color.Orange);
    94       ganttChart.AddCategory(JobState.Failed.ToString(), Color.Red);
     87      ganttChart.AddCategory(TaskState.Offline.ToString(), Color.Gainsboro);
     88      ganttChart.AddCategory(TaskState.Waiting.ToString(), Color.NavajoWhite);
     89      ganttChart.AddCategory(TaskState.Paused.ToString(), Color.PaleVioletRed);
     90      ganttChart.AddCategory(TaskState.Transferring.ToString(), Color.CornflowerBlue);
     91      ganttChart.AddCategory(TaskState.Calculating.ToString(), Color.DarkGreen);
     92      ganttChart.AddCategory(TaskState.Finished.ToString(), Color.White);
     93      ganttChart.AddCategory(TaskState.Aborted.ToString(), Color.Orange);
     94      ganttChart.AddCategory(TaskState.Failed.ToString(), Color.Red);
    9595    }
    9696
Note: See TracChangeset for help on using the changeset viewer.