- Timestamp:
- 01/02/12 11:40:31 (13 years ago)
- Location:
- branches/RegressionBenchmarks
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks
-
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/GanttChart/GanttChart.Designer.cs
r6976 r7255 69 69 #endregion 70 70 71 private Visualization.ChartControlsExtensions.EnhancedChart chart; 71 public Visualization.ChartControlsExtensions.EnhancedChart chart; 72 73 72 74 } 73 75 } -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs
r6976 r7255 93 93 this.jobIdTextBox.Text = Content.Task.Id.ToString(); 94 94 this.dateCreatedTextBox.Text = Content.Task.DateCreated.HasValue ? Content.Task.DateCreated.ToString() : string.Empty; 95 this.priorityComboBox.Text = Content.Task.Priority.ToString(); 95 if (Content.Task.Priority >= 0 && Content.Task.Priority < priorityComboBox.Items.Count) { 96 this.priorityComboBox.SelectedIndex = Content.Task.Priority; 97 } else { 98 this.priorityComboBox.SelectedIndex = 0; 99 } 96 100 this.coresNeededComboBox.Text = Content.Task.CoresNeeded.ToString(); 97 101 this.memoryNeededComboBox.Text = Content.Task.MemoryNeeded.ToString(); … … 99 103 this.jobIdTextBox.Text = string.Empty; 100 104 this.dateCreatedTextBox.Text = string.Empty; 101 this.priorityComboBox. Text = "3";105 this.priorityComboBox.SelectedIndex = 0; 102 106 this.coresNeededComboBox.Text = "1"; 103 this.memoryNeededComboBox.Text = " 256";107 this.memoryNeededComboBox.Text = "128"; 104 108 } 105 109 } … … 201 205 this.modifyItemButton.Enabled = (Content != null && Content.ItemTask.Item != null && (Content.Task.State == TaskState.Paused || Content.Task.State == TaskState.Offline || Content.Task.State == TaskState.Finished || Content.Task.State == TaskState.Failed || Content.Task.State == TaskState.Aborted)); 202 206 } 207 208 private void priorityComboBox_SelectedIndexChanged(object sender, EventArgs e) { 209 if (Content.Task.Priority != priorityComboBox.SelectedIndex) { 210 Content.Task.Priority = priorityComboBox.SelectedIndex; 211 } 212 } 203 213 } 204 214 } -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.designer.cs
r6976 r7255 30 30 this.splitContainer2 = new System.Windows.Forms.SplitContainer(); 31 31 this.groupBoxGenerel = new System.Windows.Forms.GroupBox(); 32 this.priorityComboBox = new System.Windows.Forms.ComboBox(); 32 33 this.jobIdLabel = new System.Windows.Forms.Label(); 33 34 this.jobIdTextBox = new System.Windows.Forms.TextBox(); … … 36 37 this.priorityLabel = new System.Windows.Forms.Label(); 37 38 this.configurationGroupBox = new System.Windows.Forms.GroupBox(); 39 this.memoryNeededComboBox = new System.Windows.Forms.ComboBox(); 40 this.coresNeededComboBox = new System.Windows.Forms.ComboBox(); 38 41 this.memoryNeededLabel = new System.Windows.Forms.Label(); 39 42 this.coresNeededLabel = new System.Windows.Forms.Label(); … … 57 60 this.modifyItemButton = new System.Windows.Forms.Button(); 58 61 this.tabControl = new System.Windows.Forms.TabControl(); 59 this.priorityComboBox = new System.Windows.Forms.ComboBox();60 this.coresNeededComboBox = new System.Windows.Forms.ComboBox();61 this.memoryNeededComboBox = new System.Windows.Forms.ComboBox();62 62 this.stateLogTabPage.SuspendLayout(); 63 63 this.detailsTabPage.SuspendLayout(); … … 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 // … … 164 164 this.groupBoxGenerel.TabIndex = 43; 165 165 this.groupBoxGenerel.TabStop = false; 166 this.groupBoxGenerel.Text = "Generel"; 166 this.groupBoxGenerel.Text = "General"; 167 // 168 // priorityComboBox 169 // 170 this.priorityComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 171 | System.Windows.Forms.AnchorStyles.Right))); 172 this.priorityComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 173 this.priorityComboBox.FormattingEnabled = true; 174 this.priorityComboBox.Items.AddRange(new object[] { 175 "Normal", 176 "Urgent", 177 "Critical"}); 178 this.priorityComboBox.Location = new System.Drawing.Point(87, 39); 179 this.priorityComboBox.Name = "priorityComboBox"; 180 this.priorityComboBox.Size = new System.Drawing.Size(182, 21); 181 this.priorityComboBox.TabIndex = 43; 182 this.priorityComboBox.SelectedIndexChanged += new System.EventHandler(this.priorityComboBox_SelectedIndexChanged); 167 183 // 168 184 // jobIdLabel … … 187 203 // 188 204 this.lastUpdatedLabel.AutoSize = true; 189 this.lastUpdatedLabel.Location = new System.Drawing.Point(6, 6 0);205 this.lastUpdatedLabel.Location = new System.Drawing.Point(6, 68); 190 206 this.lastUpdatedLabel.Name = "lastUpdatedLabel"; 191 207 this.lastUpdatedLabel.Size = new System.Drawing.Size(75, 13); … … 197 213 this.lastUpdatedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 198 214 | System.Windows.Forms.AnchorStyles.Right))); 199 this.lastUpdatedTextBox.Location = new System.Drawing.Point(87, 57);215 this.lastUpdatedTextBox.Location = new System.Drawing.Point(87, 66); 200 216 this.lastUpdatedTextBox.Name = "lastUpdatedTextBox"; 201 217 this.lastUpdatedTextBox.Size = new System.Drawing.Size(182, 20); … … 205 221 // 206 222 this.priorityLabel.AutoSize = true; 207 this.priorityLabel.Location = new System.Drawing.Point(6, 38);223 this.priorityLabel.Location = new System.Drawing.Point(6, 42); 208 224 this.priorityLabel.Name = "priorityLabel"; 209 225 this.priorityLabel.Size = new System.Drawing.Size(41, 13); … … 227 243 this.configurationGroupBox.Text = "Resource demands"; 228 244 // 245 // memoryNeededComboBox 246 // 247 this.memoryNeededComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 248 | System.Windows.Forms.AnchorStyles.Right))); 249 this.memoryNeededComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 250 this.memoryNeededComboBox.FormattingEnabled = true; 251 this.memoryNeededComboBox.Items.AddRange(new object[] { 252 "128", 253 "256", 254 "512", 255 "1024", 256 "2048"}); 257 this.memoryNeededComboBox.Location = new System.Drawing.Point(134, 40); 258 this.memoryNeededComboBox.Name = "memoryNeededComboBox"; 259 this.memoryNeededComboBox.Size = new System.Drawing.Size(134, 21); 260 this.memoryNeededComboBox.TabIndex = 42; 261 // 262 // coresNeededComboBox 263 // 264 this.coresNeededComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 265 | System.Windows.Forms.AnchorStyles.Right))); 266 this.coresNeededComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 267 this.coresNeededComboBox.FormattingEnabled = true; 268 this.coresNeededComboBox.Items.AddRange(new object[] { 269 "1", 270 "2", 271 "3", 272 "4"}); 273 this.coresNeededComboBox.Location = new System.Drawing.Point(134, 13); 274 this.coresNeededComboBox.Name = "coresNeededComboBox"; 275 this.coresNeededComboBox.Size = new System.Drawing.Size(134, 21); 276 this.coresNeededComboBox.TabIndex = 41; 277 // 229 278 // memoryNeededLabel 230 279 // 231 280 this.memoryNeededLabel.AutoSize = true; 232 this.memoryNeededLabel.Location = new System.Drawing.Point(6, 38);281 this.memoryNeededLabel.Location = new System.Drawing.Point(6, 43); 233 282 this.memoryNeededLabel.Name = "memoryNeededLabel"; 234 283 this.memoryNeededLabel.Size = new System.Drawing.Size(122, 13); … … 241 290 this.coresNeededLabel.Location = new System.Drawing.Point(6, 16); 242 291 this.coresNeededLabel.Name = "coresNeededLabel"; 243 this.coresNeededLabel.Size = new System.Drawing.Size(10 1, 13);292 this.coresNeededLabel.Size = new System.Drawing.Size(104, 13); 244 293 this.coresNeededLabel.TabIndex = 39; 245 this.coresNeededLabel.Text = "Nr. of cores needed";294 this.coresNeededLabel.Text = "Nr. of needed cores:"; 246 295 // 247 296 // computeInParallelLabel 248 297 // 249 298 this.computeInParallelLabel.AutoSize = true; 250 this.computeInParallelLabel.Location = new System.Drawing.Point(6, 6 0);299 this.computeInParallelLabel.Location = new System.Drawing.Point(6, 67); 251 300 this.computeInParallelLabel.Name = "computeInParallelLabel"; 252 this.computeInParallelLabel.Size = new System.Drawing.Size(1 22, 13);301 this.computeInParallelLabel.Size = new System.Drawing.Size(107, 13); 253 302 this.computeInParallelLabel.TabIndex = 36; 254 this.computeInParallelLabel.Text = " Compute task in parallel:";303 this.computeInParallelLabel.Text = "Distribute child tasks:"; 255 304 // 256 305 // computeInParallelCheckBox 257 306 // 258 307 this.computeInParallelCheckBox.AutoSize = true; 259 this.computeInParallelCheckBox.Location = new System.Drawing.Point(135, 6 1);308 this.computeInParallelCheckBox.Location = new System.Drawing.Point(135, 67); 260 309 this.computeInParallelCheckBox.Name = "computeInParallelCheckBox"; 261 310 this.computeInParallelCheckBox.Size = new System.Drawing.Size(15, 14); … … 292 341 this.commandTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 293 342 | System.Windows.Forms.AnchorStyles.Right))); 294 this.commandTextBox.Location = new System.Drawing.Point(95, 41);343 this.commandTextBox.Location = new System.Drawing.Point(95, 39); 295 344 this.commandTextBox.Name = "commandTextBox"; 296 345 this.commandTextBox.Size = new System.Drawing.Size(171, 20); … … 300 349 // 301 350 this.commandLabel.AutoSize = true; 302 this.commandLabel.Location = new System.Drawing.Point(7, 4 1);351 this.commandLabel.Location = new System.Drawing.Point(7, 42); 303 352 this.commandLabel.Name = "commandLabel"; 304 353 this.commandLabel.Size = new System.Drawing.Size(57, 13); … … 310 359 this.stateTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 311 360 | System.Windows.Forms.AnchorStyles.Right))); 312 this.stateTextBox.Location = new System.Drawing.Point(95, 1 9);361 this.stateTextBox.Location = new System.Drawing.Point(95, 13); 313 362 this.stateTextBox.Name = "stateTextBox"; 314 363 this.stateTextBox.Size = new System.Drawing.Size(171, 20); … … 318 367 // 319 368 this.dateCalculatedLabel.AutoSize = true; 320 this.dateCalculatedLabel.Location = new System.Drawing.Point(7, 1 08);369 this.dateCalculatedLabel.Location = new System.Drawing.Point(7, 120); 321 370 this.dateCalculatedLabel.Name = "dateCalculatedLabel"; 322 371 this.dateCalculatedLabel.Size = new System.Drawing.Size(85, 13); … … 327 376 // 328 377 this.stateLabel.AutoSize = true; 329 this.stateLabel.Location = new System.Drawing.Point(7, 1 9);378 this.stateLabel.Location = new System.Drawing.Point(7, 16); 330 379 this.stateLabel.Name = "stateLabel"; 331 380 this.stateLabel.Size = new System.Drawing.Size(35, 13); … … 337 386 this.dateCalculatedText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 338 387 | System.Windows.Forms.AnchorStyles.Right))); 339 this.dateCalculatedText.Location = new System.Drawing.Point(95, 1 08);388 this.dateCalculatedText.Location = new System.Drawing.Point(95, 117); 340 389 this.dateCalculatedText.Name = "dateCalculatedText"; 341 390 this.dateCalculatedText.Size = new System.Drawing.Size(171, 20); … … 346 395 this.dateFinishedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 347 396 | System.Windows.Forms.AnchorStyles.Right))); 348 this.dateFinishedTextBox.Location = new System.Drawing.Point(95, 1 30);397 this.dateFinishedTextBox.Location = new System.Drawing.Point(95, 143); 349 398 this.dateFinishedTextBox.Name = "dateFinishedTextBox"; 350 399 this.dateFinishedTextBox.Size = new System.Drawing.Size(171, 20); … … 355 404 this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 356 405 | System.Windows.Forms.AnchorStyles.Right))); 357 this.executionTimeTextBox.Location = new System.Drawing.Point(95, 6 4);406 this.executionTimeTextBox.Location = new System.Drawing.Point(95, 65); 358 407 this.executionTimeTextBox.Name = "executionTimeTextBox"; 359 408 this.executionTimeTextBox.Size = new System.Drawing.Size(171, 20); … … 364 413 this.dateCreatedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 365 414 | System.Windows.Forms.AnchorStyles.Right))); 366 this.dateCreatedTextBox.Location = new System.Drawing.Point(95, 86);415 this.dateCreatedTextBox.Location = new System.Drawing.Point(95, 91); 367 416 this.dateCreatedTextBox.Name = "dateCreatedTextBox"; 368 417 this.dateCreatedTextBox.Size = new System.Drawing.Size(171, 20); … … 372 421 // 373 422 this.executionTimeLabel.AutoSize = true; 374 this.executionTimeLabel.Location = new System.Drawing.Point(7, 6 4);423 this.executionTimeLabel.Location = new System.Drawing.Point(7, 68); 375 424 this.executionTimeLabel.Name = "executionTimeLabel"; 376 425 this.executionTimeLabel.Size = new System.Drawing.Size(79, 13); … … 381 430 // 382 431 this.exceptionLabel.AutoSize = true; 383 this.exceptionLabel.Location = new System.Drawing.Point(7, 1 52);432 this.exceptionLabel.Location = new System.Drawing.Point(7, 172); 384 433 this.exceptionLabel.Name = "exceptionLabel"; 385 434 this.exceptionLabel.Size = new System.Drawing.Size(57, 13); … … 390 439 // 391 440 this.dateCreatedLabel.AutoSize = true; 392 this.dateCreatedLabel.Location = new System.Drawing.Point(7, 86);441 this.dateCreatedLabel.Location = new System.Drawing.Point(7, 94); 393 442 this.dateCreatedLabel.Name = "dateCreatedLabel"; 394 443 this.dateCreatedLabel.Size = new System.Drawing.Size(72, 13); … … 399 448 // 400 449 this.dateFinishedLabel.AutoSize = true; 401 this.dateFinishedLabel.Location = new System.Drawing.Point(7, 1 30);450 this.dateFinishedLabel.Location = new System.Drawing.Point(7, 146); 402 451 this.dateFinishedLabel.Name = "dateFinishedLabel"; 403 452 this.dateFinishedLabel.Size = new System.Drawing.Size(72, 13); … … 409 458 this.exceptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 410 459 | System.Windows.Forms.AnchorStyles.Right))); 411 this.exceptionTextBox.Location = new System.Drawing.Point(95, 1 52);460 this.exceptionTextBox.Location = new System.Drawing.Point(95, 169); 412 461 this.exceptionTextBox.Name = "exceptionTextBox"; 413 462 this.exceptionTextBox.Size = new System.Drawing.Size(171, 20); … … 439 488 this.tabControl.Size = new System.Drawing.Size(571, 401); 440 489 this.tabControl.TabIndex = 25; 441 //442 // priorityComboBox443 //444 this.priorityComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)445 | System.Windows.Forms.AnchorStyles.Right)));446 this.priorityComboBox.FormattingEnabled = true;447 this.priorityComboBox.Items.AddRange(new object[] {448 "1",449 "2",450 "3",451 "4",452 "5"});453 this.priorityComboBox.Location = new System.Drawing.Point(87, 35);454 this.priorityComboBox.Name = "priorityComboBox";455 this.priorityComboBox.Size = new System.Drawing.Size(182, 21);456 this.priorityComboBox.TabIndex = 43;457 //458 // coresNeededComboBox459 //460 this.coresNeededComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)461 | System.Windows.Forms.AnchorStyles.Right)));462 this.coresNeededComboBox.FormattingEnabled = true;463 this.coresNeededComboBox.Items.AddRange(new object[] {464 "1",465 "2",466 "3",467 "4",468 "5",469 "6",470 "7",471 "8"});472 this.coresNeededComboBox.Location = new System.Drawing.Point(134, 13);473 this.coresNeededComboBox.Name = "coresNeededComboBox";474 this.coresNeededComboBox.Size = new System.Drawing.Size(134, 21);475 this.coresNeededComboBox.TabIndex = 41;476 //477 // memoryNeededComboBox478 //479 this.memoryNeededComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)480 | System.Windows.Forms.AnchorStyles.Right)));481 this.memoryNeededComboBox.FormattingEnabled = true;482 this.memoryNeededComboBox.Items.AddRange(new object[] {483 "128",484 "256",485 "512",486 "1024",487 "2048"});488 this.memoryNeededComboBox.Location = new System.Drawing.Point(134, 35);489 this.memoryNeededComboBox.Name = "memoryNeededComboBox";490 this.memoryNeededComboBox.Size = new System.Drawing.Size(135, 21);491 this.memoryNeededComboBox.TabIndex = 42;492 490 // 493 491 // HiveTaskView -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r6976 r7255 23 23 using System.Windows.Forms; 24 24 using HeuristicLab.MainForm; 25 using System.Threading.Tasks; 26 using HeuristicLab.PluginInfrastructure; 25 27 26 28 namespace HeuristicLab.Clients.Hive.Views { … … 28 30 [Content(typeof(OptimizerHiveTask), true)] 29 31 public partial class OptimizerHiveTaskView : HiveTaskView { 32 private ProgressView progressView; 33 30 34 public new OptimizerHiveTask Content { 31 35 get { return (OptimizerHiveTask)base.Content; } … … 67 71 #region Child Control Events 68 72 private void restartButton_Click(object sender, EventArgs e) { 69 Content.Restart(); 73 var task = System.Threading.Tasks.Task.Factory.StartNew(ResumeTaskAsync); 74 task.ContinueWith((t) => { 75 FinishProgressView(); 76 ErrorHandling.ShowErrorDialog(this, "An error occured while resuming the task.", t.Exception); 77 }, TaskContinuationOptions.OnlyOnFaulted); 70 78 } 71 79 72 80 private void pauseButton_Click(object sender, EventArgs e) { 73 Content.Pause(); 81 var task = System.Threading.Tasks.Task.Factory.StartNew(PauseTaskAsync); 82 task.ContinueWith((t) => { 83 FinishProgressView(); 84 ErrorHandling.ShowErrorDialog(this, "An error occured while pausing the task.", t.Exception); 85 }, TaskContinuationOptions.OnlyOnFaulted); 74 86 } 75 87 76 88 private void stopButton_Click(object sender, EventArgs e) { 77 Content.Stop(); 89 var task = System.Threading.Tasks.Task.Factory.StartNew(StopTaskAsync); 90 task.ContinueWith((t) => { 91 FinishProgressView(); 92 ErrorHandling.ShowErrorDialog(this, "An error occured while stopping the task.", t.Exception); 93 }, TaskContinuationOptions.OnlyOnFaulted); 78 94 } 79 95 #endregion 96 97 private void PauseTaskAsync() { 98 IProgress prog = new Progress(); 99 prog.Status = "Pausing task. Please be patient for the command to take effect."; 100 SetProgressView(prog); 101 Content.Pause(); 102 FinishProgressView(); 103 } 104 105 private void StopTaskAsync() { 106 IProgress prog = new Progress(); 107 prog.Status = "Stopping task. Please be patient for the command to take effect."; 108 SetProgressView(prog); 109 Content.Stop(); 110 FinishProgressView(); 111 } 112 113 private void ResumeTaskAsync() { 114 IProgress prog = new Progress(); 115 prog.Status = "Resuming task. Please be patient for the command to take effect."; 116 SetProgressView(prog); 117 Content.Restart(); 118 FinishProgressView(); 119 } 120 121 private void SetProgressView(IProgress progress) { 122 if (InvokeRequired) { 123 Invoke(new Action<IProgress>(SetProgressView), progress); 124 } else { 125 if (progressView == null) { 126 progressView = new ProgressView(this, progress); 127 } else { 128 progressView.Progress = progress; 129 } 130 } 131 } 132 133 private void FinishProgressView() { 134 if (InvokeRequired) { 135 Invoke(new Action(FinishProgressView)); 136 } else { 137 if (progressView != null) { 138 progressView.Finish(); 139 progressView = null; 140 SetEnabledStateOfControls(); 141 } 142 } 143 } 80 144 81 145 protected override void SetEnabledStateOfControls() { -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.designer.cs
r6976 r7255 32 32 this.stateLogTabPage.SuspendLayout(); 33 33 this.detailsTabPage.SuspendLayout(); 34 this.configurationGroupBox.SuspendLayout();35 34 this.jobStatusGroupBox.SuspendLayout(); 36 35 this.tabControl.SuspendLayout(); 36 this.configurationGroupBox.SuspendLayout(); 37 37 this.runsTabPage.SuspendLayout(); 38 38 this.SuspendLayout(); … … 43 43 this.detailsTabPage.Controls.Add(this.pauseButton); 44 44 this.detailsTabPage.Controls.Add(this.stopButton); 45 this.detailsTabPage.Controls.SetChildIndex(this.modifyItemButton, 0); 45 46 this.detailsTabPage.Controls.SetChildIndex(this.stopButton, 0); 46 47 this.detailsTabPage.Controls.SetChildIndex(this.pauseButton, 0); … … 54 55 this.tabControl.Controls.SetChildIndex(this.detailsTabPage, 0); 55 56 // 56 // showItemButton57 // modifyItemButton 57 58 // 58 this.modifyItemButton.Text = " Modify Optimizer";59 this.modifyItemButton.Text = "Show/Modify Optimizer"; 59 60 // 60 61 // restartButton … … 123 124 this.stateLogTabPage.ResumeLayout(false); 124 125 this.detailsTabPage.ResumeLayout(false); 125 this.detailsTabPage.PerformLayout();126 this.configurationGroupBox.ResumeLayout(false);127 this.configurationGroupBox.PerformLayout();128 126 this.jobStatusGroupBox.ResumeLayout(false); 129 127 this.jobStatusGroupBox.PerformLayout(); 130 128 this.tabControl.ResumeLayout(false); 129 this.configurationGroupBox.ResumeLayout(false); 130 this.configurationGroupBox.PerformLayout(); 131 131 this.runsTabPage.ResumeLayout(false); 132 132 this.ResumeLayout(false); -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.resx
r6976 r7255 119 119 </resheader> 120 120 <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 121 <data name="restartButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 122 <value> 123 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 124 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK/wAA 125 Cv8BNGKaggAAALBJREFUOE9j+P//PwMlGKvmsv3ZbsQaitWAhBkR/4k1BKcBlmX6RBmC1YCoKUH/N9xa 126 /J8YQ7AaEDzBG2Q7UYZgNcCnyxlsAAhHLQrA6xKsBjg2W/zP2BAL1mzbrP9fp1jhv0QaN4hWQ48drAaY 127 1+ihaOZPYMGqGWQYVgP0SpXhNuPTjNMAlXwpsLMJacZpgHSGIFGacRogksyJ089EBSK20MaVNyjKiTi9 128 QGxOBKkDACT9xOni1RbMAAAAAElFTkSuQmCC 129 </value> 130 </data> 131 <data name="pauseButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 132 <value> 133 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 134 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK/wAA 135 Cv8BNGKaggAAAL5JREFUOE9j+P//PwMlmCLNIIsHoQG9m//+79rw63/e1EefQE5E56OHF4YXQJqvPvzz 136 Xzd0FVDtfwZ0PkED2tZ++3/r6e//qn6LwAag8wka0Lji8//LD3//l3ObBTYAnU/QgNrF7/+fuP77v5jd 137 JLAB6HyCBlTMe/V/94Wf//nNusEGoPMJGlAy+/n/9Sd//uc0aAUbgM4naEDB9Mf/F+z5/J9VpxFsADqf 138 oAGg+GfTbYIbgM4naACpGWvg8wIAkX3yJyVePz4AAAAASUVORK5CYII= 139 </value> 140 </data> 121 141 <data name="stopButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 122 142 <value> … … 132 152 </value> 133 153 </data> 134 <data name="pauseButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">135 <value>136 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8137 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK/wAA138 Cv8BNGKaggAAAL5JREFUOE9j+P//PwMlmCLNIIsHoQG9m//+79rw63/e1EefQE5E56OHF4YXQJqvPvzz139 Xzd0FVDtfwZ0PkED2tZ++3/r6e//qn6LwAag8wka0Lji8//LD3//l3ObBTYAnU/QgNrF7/+fuP77v5jd140 JLAB6HyCBlTMe/V/94Wf//nNusEGoPMJGlAy+/n/9Sd//uc0aAUbgM4naEDB9Mf/F+z5/J9VpxFsADqf141 oAGg+GfTbYIbgM4naACpGWvg8wIAkX3yJyVePz4AAAAASUVORK5CYII=142 </value>143 </data>144 <data name="restartButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">145 <value>146 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8147 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK/wAA148 Cv8BNGKaggAAALBJREFUOE9j+P//PwMlGKvmsv3ZbsQaitWAhBkR/4k1BKcBlmX6RBmC1YCoKUH/N9xa149 /J8YQ7AaEDzBG2Q7UYZgNcCnyxlsAAhHLQrA6xKsBjg2W/zP2BAL1mzbrP9fp1jhv0QaN4hWQ48drAaY150 1+ihaOZPYMGqGWQYVgP0SpXhNuPTjNMAlXwpsLMJacZpgHSGIFGacRogksyJ089EBSK20MaVNyjKiTi9151 QGxOBKkDACT9xOni1RbMAAAAAElFTkSuQmCC152 </value>153 </data>154 154 </root> -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs
r6976 r7255 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; -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/TreeView/DeleteTaskTreeNodeAction.cs
r6976 r7255 25 25 using HeuristicLab.Optimization; 26 26 27 namespace HeuristicLab.Clients.Hive.Views. ExperimentManager.TreeView {27 namespace HeuristicLab.Clients.Hive.Views.TreeView { 28 28 public class DeleteTaskTreeNodeAction : IItemTreeNodeAction<HiveTask> { 29 29 private ItemCollection<HiveTask> hiveTasks; -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/TreeView/HiveTaskItemTreeView.Designer.cs
r6976 r7255 20 20 #endregion 21 21 22 namespace HeuristicLab.Clients.Hive.Views .ExperimentManager{22 namespace HeuristicLab.Clients.Hive.Views { 23 23 partial class HiveTaskItemTreeView { 24 24 /// <summary> -
branches/RegressionBenchmarks/HeuristicLab.Clients.Hive.Views/3.3/TreeView/HiveTaskItemTreeView.cs
r7056 r7255 29 29 using HeuristicLab.Optimization; 30 30 31 namespace HeuristicLab.Clients.Hive.Views .ExperimentManager{31 namespace HeuristicLab.Clients.Hive.Views { 32 32 [View("HiveTask ItemTreeView")] 33 33 [Content(typeof(ItemCollection<HiveTask>), IsDefaultView = false)]
Note: See TracChangeset
for help on using the changeset viewer.