Changeset 13338 for branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
- Timestamp:
- 11/23/15 16:14:30 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r12926 r13338 137 137 } 138 138 } 139 } 140 finally { 139 } finally { 141 140 SuppressEvents = false; 142 141 } … … 307 306 //don't show the error dialog when downloading tasks, the HiveClient will throw an exception and the dialog will be shown then 308 307 if (sender.GetType() != typeof(ConcurrentTaskDownloader<ItemTask>) && sender.GetType() != typeof(TaskDownloader)) { 309 ErrorHandling.ShowErrorDialog(this, e.Value);308 MainFormManager.MainForm.ShowError(e.Value.Message, e.Value); 310 309 } 311 310 } … … 359 358 }, TaskContinuationOptions.OnlyOnFaulted); 360 359 } else { 361 HiveClient.StartJob((Exception ex) => ErrorHandling.ShowErrorDialog(this,"Start failed.", ex), Content, new CancellationToken());360 HiveClient.StartJob((Exception ex) => MainFormManager.MainForm.ShowError("Start failed.", ex), Content, new CancellationToken()); 362 361 } 363 362 } … … 419 418 try { 420 419 invoker.EndInvoke(ar); 421 } 422 catch (Exception ex) { 423 ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex); 420 } catch (Exception ex) { 421 ThreadPool.QueueUserWorkItem(delegate(object exception) { 422 var _ex = (Exception)exception; 423 MainFormManager.MainForm.ShowError(_ex.Message, _ex); 424 }, ex); 424 425 } 425 426 }, null);
Note: See TracChangeset
for help on using the changeset viewer.