Changeset 12926 for trunk/sources/HeuristicLab.Clients.Hive.JobManager
- Timestamp:
- 09/01/15 14:10:37 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.Designer.cs
r12012 r12926 70 70 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 71 71 this.refreshButton = new System.Windows.Forms.Button(); 72 this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox();73 72 this.UnloadButton = new System.Windows.Forms.Button(); 74 73 this.refreshAutomaticallyCheckBox = new System.Windows.Forms.CheckBox(); … … 332 331 this.resourceNamesTextBox.Location = new System.Drawing.Point(70, 52); 333 332 this.resourceNamesTextBox.Name = "resourceNamesTextBox"; 334 this.resourceNamesTextBox.Size = new System.Drawing.Size( 385, 20);333 this.resourceNamesTextBox.Size = new System.Drawing.Size(471, 20); 335 334 this.resourceNamesTextBox.TabIndex = 2; 336 335 this.resourceNamesTextBox.Validated += new System.EventHandler(this.resourceNamesTextBox_Validated); … … 365 364 this.refreshButton.UseVisualStyleBackColor = true; 366 365 this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click); 367 //368 // isPrivilegedCheckBox369 //370 this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));371 this.isPrivilegedCheckBox.AutoSize = true;372 this.isPrivilegedCheckBox.Location = new System.Drawing.Point(491, 54);373 this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox";374 this.isPrivilegedCheckBox.Size = new System.Drawing.Size(72, 17);375 this.isPrivilegedCheckBox.TabIndex = 3;376 this.isPrivilegedCheckBox.Text = "Privileged";377 this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the task will be executed in a privileged sandbox on the slave.");378 this.isPrivilegedCheckBox.UseVisualStyleBackColor = true;379 this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckChanged);380 366 // 381 367 // UnloadButton … … 475 461 this.searchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 476 462 this.searchButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Zoom; 477 this.searchButton.Location = new System.Drawing.Point( 461, 50);463 this.searchButton.Location = new System.Drawing.Point(547, 50); 478 464 this.searchButton.Name = "searchButton"; 479 465 this.searchButton.Size = new System.Drawing.Size(24, 24); … … 487 473 this.Controls.Add(this.UnloadButton); 488 474 this.Controls.Add(this.searchButton); 489 this.Controls.Add(this.isPrivilegedCheckBox);490 475 this.Controls.Add(this.infoGroupBox); 491 476 this.Controls.Add(this.refreshAutomaticallyCheckBox); … … 542 527 private System.Windows.Forms.Label calculatingLabel; 543 528 private System.Windows.Forms.Label jobsLabel; 544 private System.Windows.Forms.CheckBox isPrivilegedCheckBox;545 529 private System.Windows.Forms.TabPage stateTabPage; 546 530 private HeuristicLab.MainForm.WindowsForms.ViewHost stateLogViewHost; -
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r12012 r12926 119 119 executionTimeTextBox.Text = string.Empty; 120 120 resourceNamesTextBox.Text = string.Empty; 121 isPrivilegedCheckBox.Checked = false;122 121 refreshAutomaticallyCheckBox.Checked = false; 123 122 lock (runCollectionViewLocker) { … … 132 131 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 133 132 resourceNamesTextBox.Text = Content.Job.ResourceNames; 134 isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;135 133 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 136 134 logView.Content = Content.Log; … … 163 161 searchButton.Enabled = !Locked; 164 162 jobsTreeView.Enabled = !Locked; 165 isPrivilegedCheckBox.Enabled = !Locked;166 163 refreshAutomaticallyCheckBox.Enabled = !Locked; 167 164 refreshButton.Enabled = !Locked; … … 191 188 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded || Content.IsProgressing; 192 189 193 this.isPrivilegedCheckBox.Enabled = HiveClient.Instance.IsAllowedPrivileged && Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded) && !Content.IsProgressing;194 190 this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing; 195 191 this.refreshButton.Enabled = Content.IsDownloadable && alreadyUploaded && !Content.IsProgressing; … … 279 275 lock (runCollectionViewLocker) { 280 276 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 281 }282 if (InvokeRequired) {283 Invoke(new Action(() => { isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged; }));284 } else {285 isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;286 277 } 287 278 } … … 423 414 } 424 415 425 private void isPrivilegedCheckBox_CheckChanged(object sender, EventArgs e) {426 if (Content != null && !SuppressEvents) Content.Job.IsPrivileged = isPrivilegedCheckBox.Checked;427 }428 429 416 private void refreshButton_Click(object sender, EventArgs e) { 430 417 var invoker = new Action<RefreshableJob>(HiveClient.LoadJob);
Note: See TracChangeset
for help on using the changeset viewer.