Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:30 (8 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.Optimization.Views/3.3/MultiEncodingView.cs

    r11963 r13338  
    8282            encoding = (IEncoding)Activator.CreateInstance(dialog.EncodingType, dialog.EncodingName);
    8383          } catch (MissingMethodException mmex) {
    84             PluginInfrastructure.ErrorHandling.ShowErrorDialog("The encoding must have a constructor that takes the name as a single string argument", mmex);
     84            MainFormManager.MainForm.ShowError("The encoding must have a constructor that takes the name as a single string argument", mmex);
    8585            return;
    8686          } catch (TargetInvocationException tiex) {
    87             PluginInfrastructure.ErrorHandling.ShowErrorDialog("The encoding could not be created due to an error in the constructor.", tiex);
     87            MainFormManager.MainForm.ShowError("The encoding could not be created due to an error in the constructor.", tiex);
    8888            return;
    8989          } catch (MethodAccessException maex) {
    90             PluginInfrastructure.ErrorHandling.ShowErrorDialog("The encoding's string constructor is not public.", maex);
     90            MainFormManager.MainForm.ShowError("The encoding's string constructor is not public.", maex);
    9191            return;
    9292          }
Note: See TracChangeset for help on using the changeset viewer.