Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/12 15:22:13 (13 years ago)
Author:
sforsten
Message:

#1784:

  • deleted not needed Consumer in ProblemInstanceProvider and IProblemInstanceProvider
  • changed protection level of exporter and consumer in ProblemInstanceProviderViewGeneric
  • renamed property FileExtension to FileName in ResourceClassificationInstanceProvider and ResourceRegressionInstanceProvider
  • deleted ImportProblemDataFromFile method from IDataAnalysisProblem and all classes and interfaces, which implement this method
  • removed unnecessary yield return in GetDoubleValues in the Dataset. Now it's a normal return statement
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.TSPLIB.Views/3.3/TSPLIBTSPInstanceProviderView.cs

    r7754 r7758  
    2525using HeuristicLab.MainForm.WindowsForms;
    2626using HeuristicLab.Problems.Instances.Views;
     27using System.IO;
    2728
    2829namespace HeuristicLab.Problems.Instances.TSPLIB.Views {
     
    4344        if (dialog.ShowDialog() == DialogResult.OK) {
    4445          var instance = Content.LoadData(dialog.TSPFileName, dialog.TourFileName, dialog.Quality);
    45           Content.Consumer.Load(instance);
     46          try {
     47            GenericConsumer.Load(instance);
     48          }
     49          catch (Exception ex) {
     50            MessageBox.Show(String.Format("This problem does not support loading the instance {0}: {1}", Path.GetFileName(openFileDialog.FileName), Environment.NewLine + ex.Message), "Cannot load instance");
     51          }
    4652        }
    4753      }
Note: See TracChangeset for help on using the changeset viewer.