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.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r12012 r13338  
    146146          solution.Name += " with loaded problemData";
    147147        MainFormManager.MainForm.ShowContent(solution);
    148       }
    149       catch (InvalidOperationException invalidOperationException) {
    150         ErrorHandling.ShowErrorDialog(this, invalidOperationException);
    151       }
    152       catch (ArgumentException argumentException) {
    153         ErrorHandling.ShowErrorDialog(this, argumentException);
     148      } catch (InvalidOperationException invalidOperationException) {
     149        MainFormManager.MainForm.ShowError(invalidOperationException.Message, invalidOperationException);
     150      } catch (ArgumentException argumentException) {
     151        MainFormManager.MainForm.ShowError(argumentException.Message, argumentException);
    154152      }
    155153    }
     
    233231        if (!Content.Name.EndsWith(" with changed problemData"))
    234232          Content.Name += " with changed problemData";
    235       }
    236       catch (InvalidOperationException invalidOperationException) {
    237         ErrorHandling.ShowErrorDialog(this, invalidOperationException);
    238       }
    239       catch (ArgumentException argumentException) {
    240         ErrorHandling.ShowErrorDialog(this, argumentException);
     233      } catch (InvalidOperationException invalidOperationException) {
     234        MainFormManager.MainForm.ShowError(invalidOperationException.Message, invalidOperationException);
     235      } catch (ArgumentException argumentException) {
     236        MainFormManager.MainForm.ShowError(argumentException.Message, argumentException);
    241237      }
    242238    }
Note: See TracChangeset for help on using the changeset viewer.