Changeset 6419 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager
- Timestamp:
- 06/16/11 00:06:54 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentView.Designer.cs
r6381 r6419 21 21 22 22 using HeuristicLab.Clients.Hive.Views.ExperimentManager; 23 using HeuristicLab.MainForm.WindowsForms; 23 24 namespace HeuristicLab.Clients.Hive.ExperimentManager.Views { 24 25 partial class RefreshableHiveExperimentView { … … 66 67 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 67 68 this.refreshButton = new System.Windows.Forms.Button(); 69 this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox(); 68 70 this.refreshAutomaticallyCheckBox = new System.Windows.Forms.CheckBox(); 69 71 this.infoGroupBox = new System.Windows.Forms.GroupBox(); … … 74 76 this.calculatingLabel = new System.Windows.Forms.Label(); 75 77 this.jobsLabel = new System.Windows.Forms.Label(); 76 this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox(); 78 this.stateTabPage = new System.Windows.Forms.TabPage(); 79 this.stateLogViewHost = new ViewHost(); 77 80 this.tabControl.SuspendLayout(); 78 81 this.jobsTabPage.SuspendLayout(); 79 82 this.logTabPage.SuspendLayout(); 80 83 this.infoGroupBox.SuspendLayout(); 84 this.stateTabPage.SuspendLayout(); 81 85 this.SuspendLayout(); 82 86 // … … 87 91 | System.Windows.Forms.AnchorStyles.Right))); 88 92 this.tabControl.Controls.Add(this.jobsTabPage); 93 this.tabControl.Controls.Add(this.stateTabPage); 89 94 this.tabControl.Controls.Add(this.logTabPage); 90 95 this.tabControl.Location = new System.Drawing.Point(0, 78); … … 126 131 this.logTabPage.Location = new System.Drawing.Point(4, 22); 127 132 this.logTabPage.Name = "logTabPage"; 128 this.logTabPage.Size = new System.Drawing.Size( 813, 494);133 this.logTabPage.Size = new System.Drawing.Size(709, 426); 129 134 this.logTabPage.TabIndex = 3; 130 135 this.logTabPage.Text = "Log"; … … 271 276 this.refreshButton.UseVisualStyleBackColor = true; 272 277 this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click); 278 // 279 // isPrivilegedCheckBox 280 // 281 this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 282 this.isPrivilegedCheckBox.AutoSize = true; 283 this.isPrivilegedCheckBox.Location = new System.Drawing.Point(383, 55); 284 this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox"; 285 this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17); 286 this.isPrivilegedCheckBox.TabIndex = 26; 287 this.isPrivilegedCheckBox.Text = "IsPrivileged"; 288 this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the job will be executed in a privileged sandbox on the slave."); 289 this.isPrivilegedCheckBox.UseVisualStyleBackColor = true; 290 this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckedChanged); 273 291 // 274 292 // refreshAutomaticallyCheckBox … … 353 371 this.jobsLabel.Text = "Jobs:"; 354 372 // 355 // isPrivilegedCheckBox 356 // 357 this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 358 this.isPrivilegedCheckBox.AutoSize = true; 359 this.isPrivilegedCheckBox.Location = new System.Drawing.Point(383, 55); 360 this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox"; 361 this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17); 362 this.isPrivilegedCheckBox.TabIndex = 26; 363 this.isPrivilegedCheckBox.Text = "IsPrivileged"; 364 this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the job will be executed in a privileged sandbox on the slave."); 365 this.isPrivilegedCheckBox.UseVisualStyleBackColor = true; 366 this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckedChanged); 373 // stateTabPage 374 // 375 this.stateTabPage.Controls.Add(this.stateLogViewHost); 376 this.stateTabPage.Location = new System.Drawing.Point(4, 22); 377 this.stateTabPage.Name = "stateTabPage"; 378 this.stateTabPage.Size = new System.Drawing.Size(709, 426); 379 this.stateTabPage.TabIndex = 6; 380 this.stateTabPage.Text = "State"; 381 this.stateTabPage.UseVisualStyleBackColor = true; 382 // 383 // stateLogViewHost 384 // 385 this.stateLogViewHost.Caption = "StateLog View"; 386 this.stateLogViewHost.Content = null; 387 this.stateLogViewHost.Dock = System.Windows.Forms.DockStyle.Fill; 388 this.stateLogViewHost.Location = new System.Drawing.Point(0, 0); 389 this.stateLogViewHost.Name = "stateLogViewHost"; 390 this.stateLogViewHost.ReadOnly = false; 391 this.stateLogViewHost.Size = new System.Drawing.Size(709, 426); 392 this.stateLogViewHost.TabIndex = 0; 367 393 // 368 394 // RefreshableHiveExperimentView … … 393 419 this.infoGroupBox.ResumeLayout(false); 394 420 this.infoGroupBox.PerformLayout(); 421 this.stateTabPage.ResumeLayout(false); 395 422 this.ResumeLayout(false); 396 423 this.PerformLayout(); … … 426 453 private System.Windows.Forms.Label jobsLabel; 427 454 private System.Windows.Forms.CheckBox isPrivilegedCheckBox; 455 private System.Windows.Forms.TabPage stateTabPage; 456 private ViewHost stateLogViewHost; 428 457 429 458 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentView.cs
r6381 r6419 61 61 Content.JobStatisticsChanged += new EventHandler(Content_JobStatisticsChanged); 62 62 Content.ExceptionOccured += new EventHandler<EventArgs<Exception>>(Content_ExceptionOccured); 63 Content.StateLogListChanged += new EventHandler(Content_StateLogListChanged); 63 64 } 64 65 … … 69 70 Content.JobStatisticsChanged -= new EventHandler(Content_JobStatisticsChanged); 70 71 Content.ExceptionOccured -= new EventHandler<EventArgs<Exception>>(Content_ExceptionOccured); 72 Content.StateLogListChanged -= new EventHandler(Content_StateLogListChanged); 71 73 base.DeregisterContentEvents(); 72 74 } … … 105 107 isPrivilegedCheckBox.Checked = false; 106 108 logView.Content = null; 107 refreshAutomaticallyCheckBox.Checked = false; 109 refreshAutomaticallyCheckBox.Checked = false; 108 110 logView.Content = null; 109 111 } else { … … 120 122 Content_HiveJobChanged(this, EventArgs.Empty); 121 123 Content_IsProgressingChanged(this, EventArgs.Empty); 124 Content_StateLogListChanged(this, EventArgs.Empty); 122 125 SetEnabledStateOfControls(); 123 126 } … … 260 263 // show error dialog only if Controllable (otherwise it should continue trying without an error dialog (e.g. HiveEngine)) 261 264 ErrorHandling.ShowErrorDialog(this, e.Value); 265 } 266 } 267 private void Content_StateLogListChanged(object sender, EventArgs e) { 268 if (InvokeRequired) 269 Invoke(new EventHandler(Content_StateLogListChanged), sender, e); 270 else { 271 UpdateStateLogList(); 272 } 273 } 274 275 private void UpdateStateLogList() { 276 if (Content != null && this.Content.HiveExperiment != null) { 277 stateLogViewHost.Content = this.Content.HiveExperiment.StateLogList; 278 } else { 279 stateLogViewHost.Content = null; 262 280 } 263 281 }
Note: See TracChangeset
for help on using the changeset viewer.