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.
Location:
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Analysis.Statistics.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Analysis.Statistics.Views/3.3/ChartAnalysisView.cs

    r13051 r13338  
    182182      task.ContinueWith((t) => {
    183183        MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    184         ErrorHandling.ShowErrorDialog("An error occured while adding lines to charts. ", t.Exception);
     184        MainFormManager.MainForm.ShowError("An error occured while adding lines to charts. ", t.Exception);
    185185      }, TaskContinuationOptions.OnlyOnFaulted);
    186186
     
    279279      task.ContinueWith((t) => {
    280280        MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
    281         ErrorHandling.ShowErrorDialog("An error occured while calculating values. ", t.Exception);
     281        MainFormManager.MainForm.ShowError("An error occured while calculating values. ", t.Exception);
    282282        sem.Release();
    283283      }, TaskContinuationOptions.OnlyOnFaulted);
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.Analysis.Statistics.Views/3.3/SampleSizeInfluenceView.cs

    r13051 r13338  
    344344          catch (Exception ex) {
    345345            if (verbose) {
    346               ErrorHandling.ShowErrorDialog("Can't parse group sizes. Please only use numbers seperated by a " + delimiter + ". ", ex);
     346              MainFormManager.MainForm.ShowError("Can't parse group sizes. Please only use numbers seperated by a " + delimiter + ". ", ex);
    347347            }
    348348          }
Note: See TracChangeset for help on using the changeset viewer.