Changeset 8994 for trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
- Timestamp:
- 12/04/12 14:30:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r8962 r8994 46 46 private HiveResourceSelectorDialog hiveResourceSelectorDialog; 47 47 private bool SuppressEvents { get; set; } 48 private object runCollectionViewLocker = new object(); 48 49 49 50 public new RefreshableJob Content { … … 132 133 logView.Content = null; 133 134 refreshAutomaticallyCheckBox.Checked = false; 134 runCollectionViewHost.Content = null; 135 lock (runCollectionViewLocker) { 136 runCollectionViewHost.Content = null; 137 } 135 138 } else { 136 139 nameTextBox.Text = Content.Job.Name; … … 140 143 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 141 144 logView.Content = Content.Log; 142 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 145 lock (runCollectionViewLocker) { 146 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 147 } 143 148 } 144 149 } … … 192 197 #region Content Events 193 198 void Content_TaskReceived(object sender, EventArgs e) { 194 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 199 lock (runCollectionViewLocker) { 200 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 201 } 195 202 } 196 203 … … 288 295 289 296 void Content_Loaded(object sender, EventArgs e) { 290 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 297 lock (runCollectionViewLocker) { 298 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 299 } 291 300 } 292 301
Note: See TracChangeset
for help on using the changeset viewer.