Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7728


Ignore:
Timestamp:
04/13/12 21:56:44 (13 years ago)
Author:
ascheibe
Message:

#1722 display statelog in the correct order and show slave id in tooltip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs

    r7410 r7728  
    5050    }
    5151
    52     #region Event Handlers (Content)
    53     // Put event handlers of the content here
    54     #endregion
    55 
    5652    protected override void OnContentChanged() {
    5753      base.OnContentChanged();
     
    7773          }
    7874
    79           for (int i = 0; i < Content.Count; i++) {
     75          for (int i = Content.Count - 1; i >= 0; i--) {
    8076            for (int j = 0; j < Content[i].Count - 1; j++) {
    8177              if (Content[i][j].State != TaskState.Offline)
     
    104100      DateTime until = to != null ? to.DateTime : upperLimit;
    105101      TimeSpan duration = until - from.DateTime;
    106       string tooltip = string.Format("Task: {0} " + Environment.NewLine + "Task Id: {1}" + Environment.NewLine + "State: {2} " + Environment.NewLine + "Duration: {3} " + Environment.NewLine + "{4} - {5}", from.TaskName, from.TaskId, from.State, duration, from.DateTime, until);
     102      string tooltip = string.Format("Task: {0} " + Environment.NewLine + "Task Id: {1}" + Environment.NewLine + "State: {2} " + Environment.NewLine + "Duration: {3} " + Environment.NewLine + "{4} - {5}" + Environment.NewLine, from.TaskName, from.TaskId, from.State, duration, from.DateTime, until);
     103
     104      if (to != null && to.SlaveId != null)
     105        tooltip += "Slave: " + to.SlaveId;
     106
    107107      if (!string.IsNullOrEmpty(from.Exception))
    108108        tooltip += Environment.NewLine + from.Exception;
     
    112112    protected override void SetEnabledStateOfControls() {
    113113      base.SetEnabledStateOfControls();
    114       // Enable or disable controls based on whether the content is null or the view is set readonly
    115114    }
    116 
    117     #region Event Handlers (child controls)
    118     // Put event handlers of child controls here.
    119     #endregion
    120115  }
    121116}
Note: See TracChangeset for help on using the changeset viewer.