Changeset 7409 for trunk/sources
- Timestamp:
- 01/25/12 13:20:28 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r7259 r7409 114 114 logView.Content = null; 115 115 refreshAutomaticallyCheckBox.Checked = false; 116 logView.Content = null;117 116 runCollectionViewHost.Content = null; 118 117 } else { … … 302 301 } 303 302 private void Content_ExceptionOccured(object sender, EventArgs<Exception> e) { 304 throw e.Value; 303 if (InvokeRequired) 304 Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccured), sender, e); 305 else { 306 //don't show the error dialog when downloading tasks, the HiveClient will throw an exception and the dialog will be shown then 307 if (sender.GetType() != typeof(ConcurrentTaskDownloader<ItemTask>) && sender.GetType() != typeof(TaskDownloader)) { 308 ErrorHandling.ShowErrorDialog(this, e.Value); 309 } 310 } 305 311 } 306 312 private void Content_StateLogListChanged(object sender, EventArgs e) { -
trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r7259 r7409 342 342 343 343 private void jobResultPoller_ExceptionOccured(object sender, EventArgs<Exception> e) { 344 OnExceptionOccured( e.Value);344 OnExceptionOccured(sender, e.Value); 345 345 } 346 346 private void jobDownloader_ExceptionOccured(object sender, EventArgs<Exception> e) { 347 OnExceptionOccured( e.Value);347 OnExceptionOccured(sender, e.Value); 348 348 } 349 349 public void UpdateTotalExecutionTime() { … … 445 445 446 446 public event EventHandler<EventArgs<Exception>> ExceptionOccured; 447 private void OnExceptionOccured( Exception exception) {447 private void OnExceptionOccured(object sender, Exception exception) { 448 448 log.LogException(exception); 449 449 var handler = ExceptionOccured; 450 if (handler != null) handler( this, new EventArgs<Exception>(exception));450 if (handler != null) handler(sender, new EventArgs<Exception>(exception)); 451 451 } 452 452
Note: See TracChangeset
for help on using the changeset viewer.