Changeset 7758 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.TSPLIB.Views/3.3/TSPLIBTSPInstanceProviderView.cs
- Timestamp:
- 04/24/12 15:22:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.TSPLIB.Views/3.3/TSPLIBTSPInstanceProviderView.cs
r7754 r7758 25 25 using HeuristicLab.MainForm.WindowsForms; 26 26 using HeuristicLab.Problems.Instances.Views; 27 using System.IO; 27 28 28 29 namespace HeuristicLab.Problems.Instances.TSPLIB.Views { … … 43 44 if (dialog.ShowDialog() == DialogResult.OK) { 44 45 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 } 46 52 } 47 53 }
Note: See TracChangeset
for help on using the changeset viewer.