Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:30 (9 years ago)
Author:
gkronber
Message:

#2522:

  • moved UI components out of HeuristicLab.PluginInfrastructure -> HeuristicLab.PluginInfrastructure.UI
  • moved ErrorDialog to HeuristicLab.MainForm.WindowsForms
  • moved ErrorHandling (for building an error message string) to HeuristicLab.Common
  • Changed exception handlers in Views to use MainForm.ShowError()
  • Changed usages for ErrorDialog in non-UI components to throw exceptions instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs

    r12012 r13338  
    130130            data = Content.LoadData(descriptor);
    131131          } 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);
    133133            mainForm.RemoveOperationProgressFromContent(activeView.Content);
    134134            return;
     
    137137            GenericConsumer.Load(data);
    138138          } 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);
    140140          } finally {
    141141            mainForm.RemoveOperationProgressFromContent(activeView.Content);
     
    173173          Content.ExportData(GenericExporter.Export(), saveFileDialog.FileName);
    174174        } catch (Exception ex) {
    175           ErrorHandling.ShowErrorDialog(this, ex);
     175          MainFormManager.MainForm.ShowError(ex.Message, ex);
    176176        }
    177177      }
Note: See TracChangeset for help on using the changeset viewer.