Changeset 7191 for trunk/sources
- Timestamp:
- 12/15/11 16:01:58 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/GanttChart/GanttChart.Designer.cs
r6976 r7191 69 69 #endregion 70 70 71 private Visualization.ChartControlsExtensions.EnhancedChart chart; 71 public Visualization.ChartControlsExtensions.EnhancedChart chart; 72 73 72 74 } 73 75 } -
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.designer.cs
r7190 r7191 83 83 this.stateLogTabPage.Size = new System.Drawing.Size(563, 375); 84 84 this.stateLogTabPage.TabIndex = 5; 85 this.stateLogTabPage.Text = " State";85 this.stateLogTabPage.Text = "Execution History"; 86 86 this.stateLogTabPage.UseVisualStyleBackColor = true; 87 87 // … … 301 301 this.computeInParallelLabel.Location = new System.Drawing.Point(6, 67); 302 302 this.computeInParallelLabel.Name = "computeInParallelLabel"; 303 this.computeInParallelLabel.Size = new System.Drawing.Size(1 22, 13);303 this.computeInParallelLabel.Size = new System.Drawing.Size(107, 13); 304 304 this.computeInParallelLabel.TabIndex = 36; 305 this.computeInParallelLabel.Text = " Compute task in parallel:";305 this.computeInParallelLabel.Text = "Distribute child tasks:"; 306 306 // 307 307 // computeInParallelCheckBox -
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs
r6976 r7191 56 56 base.OnContentChanged(); 57 57 if (Content == null) { 58 // Add code when content has been changed and is null59 58 ganttChart.Reset(); 60 59 } else { 61 // Add code when content has been changed and is not null62 60 ganttChart.Reset(); 63 61 SetupCategories(ganttChart); 64 62 if (Content.Count > 0) { 65 63 DateTime maxValue = Content.Max(x => x.Count > 0 ? x.Max(y => y.DateTime) : DateTime.MinValue); 64 DateTime minValue = Content.Min(x => x.Count > 0 ? x.Min(y => y.DateTime) : DateTime.MinValue); 66 65 DateTime upperLimit; 67 66 if (Content.All(x => x.Count > 0 ? (x.Last().State == TaskState.Finished || x.Last().State == TaskState.Failed || x.Last().State == TaskState.Aborted) : true)) { … … 69 68 } else { 70 69 upperLimit = DateTime.Now; 70 } 71 72 if ((upperLimit - minValue) > TimeSpan.FromDays(1)) { 73 this.ganttChart.chart.Series[0].YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Date; 74 } else { 75 this.ganttChart.chart.Series[0].YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Time; 71 76 } 72 77 … … 98 103 DateTime until = to != null ? to.DateTime : upperLimit; 99 104 TimeSpan duration = until - from.DateTime; 100 string tooltip = string.Format(" State: {0} " + Environment.NewLine + " Duration: {1} " + Environment.NewLine + " {2} - {3}", from.State, duration, from.DateTime, until);105 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); 101 106 if (!string.IsNullOrEmpty(from.Exception)) 102 107 tooltip += Environment.NewLine + from.Exception; -
trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveJobs/HiveTask.cs
r7177 r7191 143 143 144 144 public StateLogList StateLog { 145 get { return new StateLogList(this.task.StateLog); } 145 get { 146 var list = new StateLogList(this.task.StateLog); 147 list.ForEach(s => { s.TaskName = itemTask.Name; }); 148 return list; 149 } 146 150 } 147 151 -
trunk/sources/HeuristicLab.Clients.Hive/3.3/ServiceClients/StateLog.cs
r6976 r7191 38 38 } 39 39 40 public string TaskName { get; set; } 41 40 42 public override IDeepCloneable Clone(Cloner cloner) { 41 43 return new StateLog(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.