- Timestamp:
- 05/06/13 12:30:18 (12 years ago)
- Location:
- branches/HivePerformance/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 9376,9379,9388,9390,9396,9402-9410,9413,9417,9426-9429,9432-9433,9435-9439,9441-9443
- Property svn:mergeinfo changed
-
branches/HivePerformance/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r9230 r9444 119 119 120 120 protected override void OnClosing(FormClosingEventArgs e) { 121 if (Content != null && Content.Jobs .Any(x => x.IsProgressing)) {121 if (Content != null && Content.Jobs != null && Content.Jobs.Any(x => x.IsProgressing)) { 122 122 DialogResult result = MessageBox.Show("There are still unfinished down/uploads. Are you sure you want to close the window?", "HeuristicLab Hive Job Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question); 123 123 … … 131 131 132 132 protected override void OnClosed(FormClosedEventArgs e) { 133 if (Content != null ) {133 if (Content != null && Content.Jobs != null) { 134 134 Content.ClearHiveClient(); 135 135 Content = null; -
branches/HivePerformance/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r9223 r9444 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.