Changeset 13338 for branches/RefactorPluginInfrastructure-2522/HeuristicLab.Problems.Instances.Views
- Timestamp:
- 11/23/15 16:14:30 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
r12012 r13338 130 130 data = Content.LoadData(descriptor); 131 131 } catch (Exception ex) { 132 ErrorHandling.ShowErrorDialog(String.Format("Could not load the problem instance {0}", descriptor.Name), ex);132 mainForm.ShowError(String.Format("Could not load the problem instance {0}", descriptor.Name), ex); 133 133 mainForm.RemoveOperationProgressFromContent(activeView.Content); 134 134 return; … … 137 137 GenericConsumer.Load(data); 138 138 } catch (Exception ex) { 139 ErrorHandling.ShowErrorDialog(String.Format("This problem does not support loading the instance {0}", descriptor.Name), ex);139 mainForm.ShowError(String.Format("This problem does not support loading the instance {0}", descriptor.Name), ex); 140 140 } finally { 141 141 mainForm.RemoveOperationProgressFromContent(activeView.Content); … … 173 173 Content.ExportData(GenericExporter.Export(), saveFileDialog.FileName); 174 174 } catch (Exception ex) { 175 ErrorHandling.ShowErrorDialog(this, ex);175 MainFormManager.MainForm.ShowError(ex.Message, ex); 176 176 } 177 177 }
Note: See TracChangeset
for help on using the changeset viewer.