- Timestamp:
- 01/04/13 14:21:22 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
r8850 r9107 50 50 51 51 protected override RefreshableJob CreateItem() { 52 var refreshableJob = new RefreshableJob() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged };52 var refreshableJob = new RefreshableJob(); 53 53 refreshableJob.Job.Name = "New Hive Job"; 54 54 return refreshableJob; -
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.Designer.cs
r8924 r9107 375 375 this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the task will be executed in a privileged sandbox on the slave."); 376 376 this.isPrivilegedCheckBox.UseVisualStyleBackColor = true; 377 this.isPrivilegedCheckBox. Validated += new System.EventHandler(this.isPrivilegedCheckBox_Validated);377 this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckChanged); 378 378 // 379 379 // refreshAutomaticallyCheckBox -
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r9097 r9107 140 140 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 141 141 resourceNamesTextBox.Text = Content.Job.ResourceNames; 142 isPrivilegedCheckBox.Checked = Content. Job.IsPrivileged;142 isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged; 143 143 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 144 144 logView.Content = Content.Log; … … 178 178 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded || Content.IsProgressing; 179 179 180 this.isPrivilegedCheckBox.Enabled = Content.IsAllowedPrivileged && Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded) && !Content.IsProgressing;180 this.isPrivilegedCheckBox.Enabled = HiveClient.Instance.IsAllowedPrivileged && Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded) && !Content.IsProgressing; 181 181 this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing; 182 182 this.refreshButton.Enabled = Content.IsDownloadable && alreadyUploaded && !Content.IsProgressing; … … 345 345 Invoke(new EventHandler(Content_IsAllowedPrivilegedChanged), sender, e); 346 346 else { 347 isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged; 347 348 SetEnabledStateOfControls(); 348 349 } … … 447 448 } 448 449 449 private void isPrivilegedCheckBox_ Validated(object sender, EventArgs e) {450 if (Content != null && !SuppressEvents) Content. Job.IsPrivileged = isPrivilegedCheckBox.Checked;450 private void isPrivilegedCheckBox_CheckChanged(object sender, EventArgs e) { 451 if (Content != null && !SuppressEvents) Content.IsAllowedPrivileged = isPrivilegedCheckBox.Checked; 451 452 } 452 453
Note: See TracChangeset
for help on using the changeset viewer.