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.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r13173 r13338  
    2323using System.Collections.Generic;
    2424using System.Drawing;
     25using System.IO;
    2526using System.Linq;
     27using System.Reflection;
    2628using HeuristicLab.Analysis;
    2729using HeuristicLab.Common;
     
    349351
    350352      if (cities != ProblemInstance.Coordinates.Rows - 1)
    351         ErrorHandling.ShowErrorDialog(new Exception("The optimal solution does not seem to correspond with the problem data"));
     353        throw new IOException("Cannot read file. The optimal solution does not seem to correspond with the problem data");
    352354      else {
    353355        VRPSolution solution = new VRPSolution(ProblemInstance, encoding, new DoubleValue(0));
Note: See TracChangeset for help on using the changeset viewer.