Changeset 5718 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/StateLogGanttChartView.cs
- Timestamp:
- 03/16/11 17:02:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/StateLogGanttChartView.cs
r5636 r5718 21 21 22 22 using System; 23 using System.Linq; 23 24 using HeuristicLab.Core.Views; 24 25 using HeuristicLab.MainForm; … … 26 27 namespace HeuristicLab.Clients.Hive.Views { 27 28 [View("StateLogGanttChart View")] 28 [Content(typeof(StateLogList), IsDefaultView = false)]29 [Content(typeof(StateLogList), IsDefaultView = true)] 29 30 public sealed partial class StateLogGanttChartView : ItemView { 30 31 public new StateLogList Content { … … 60 61 ganttChart.Reset(); 61 62 StateLogGanttChartListView.SetupCategories(ganttChart); 62 var upperLimit = DateTime. Now.AddSeconds(10);63 63 var upperLimit = DateTime.FromOADate(Math.Min(Content.Max(x => x.DateTime).ToOADate(), DateTime.Now.AddSeconds(10).ToOADate())); 64 64 65 for (int i = 0; i < Content.Count-1; i++) { 65 //string tooltip = string.Format("State: {0}\n{1} - {2}", Content[i].State, Content[i].DateTime, Content[i + 1].DateTime);66 //if (!string.IsNullOrEmpty(Content[i].Exception))67 // tooltip += "\n" + Content[i].Exception;68 //ganttChart.AddData(Content[i].State.ToString(), Content[i].State.ToString(), Content[i].DateTime, Content[i + 1].DateTime, tooltip, false);69 66 StateLogGanttChartListView.AddData(ganttChart, i.ToString(), Content[i], Content[i+1], upperLimit); 70 67 }
Note: See TracChangeset
for help on using the changeset viewer.