- Timestamp:
- 05/03/13 23:20:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r9223 r9436 76 76 Content.ExecutionStateChanged += new EventHandler(Content_ExecutionStateChanged); 77 77 Content.ExecutionTimeChanged += new EventHandler(Content_ExecutionTimeChanged); 78 Content.IsAllowedPrivilegedChanged += new EventHandler(Content_IsAllowedPrivilegedChanged);79 78 Content.Loaded += new EventHandler(Content_Loaded); 80 79 Content.TaskReceived += new EventHandler(Content_TaskReceived); … … 145 144 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 146 145 resourceNamesTextBox.Text = Content.Job.ResourceNames; 147 isPrivilegedCheckBox.Checked = Content. IsAllowedPrivileged;146 isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged; 148 147 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 149 148 logView.Content = Content.Log; … … 327 326 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 328 327 } 328 isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged; 329 329 } 330 330 … … 368 368 else { 369 369 UpdateStateLogList(); 370 }371 }372 private void Content_IsAllowedPrivilegedChanged(object sender, EventArgs e) {373 if (InvokeRequired)374 Invoke(new EventHandler(Content_IsAllowedPrivilegedChanged), sender, e);375 else {376 isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged;377 SetEnabledStateOfControls();378 370 } 379 371 } … … 478 470 479 471 private void isPrivilegedCheckBox_CheckChanged(object sender, EventArgs e) { 480 if (Content != null && !SuppressEvents) Content. IsAllowedPrivileged = isPrivilegedCheckBox.Checked;472 if (Content != null && !SuppressEvents) Content.Job.IsPrivileged = isPrivilegedCheckBox.Checked; 481 473 } 482 474
Note: See TracChangeset
for help on using the changeset viewer.