Changeset 7823 for trunk/sources/HeuristicLab.Problems.Instances.TSPLIB.Views/3.3/TSPLIBTSPInstanceProviderView.cs
- Timestamp:
- 05/15/12 13:54:24 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/ProblemInstancesRegressionAndClassification (added) merged: 7568-7572,7603,7605-7607,7610,7664-7667,7682-7685,7687,7698,7748-7755,7757-7759,7770-7774,7794,7805,7809-7810
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.Instances.TSPLIB.Views
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.TSPLIB.Views merged eligible /branches/Benchmarking/sources/HeuristicLab.Problems.Instances.TSPLIB.Views 6917-7005 /branches/CloningRefactoring/HeuristicLab.Problems.Instances.TSPLIB.Views 4656-4721 /branches/DataAnalysis Refactoring/HeuristicLab.Problems.Instances.TSPLIB.Views 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Problems.Instances.TSPLIB.Views 5815-6180 /branches/DataAnalysis/HeuristicLab.Problems.Instances.TSPLIB.Views 4458-4459,4462,4464 /branches/GP.Grammar.Editor/HeuristicLab.Problems.Instances.TSPLIB.Views 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Problems.Instances.TSPLIB.Views 5060 /branches/NET40/sources/HeuristicLab.Problems.Instances.TSPLIB.Views 5138-5162 /branches/ParallelEngine/HeuristicLab.Problems.Instances.TSPLIB.Views 5175-5192 /branches/QAPAlgorithms/HeuristicLab.Problems.Instances.TSPLIB.Views 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Problems.Instances.TSPLIB.Views 6828 /branches/SuccessProgressAnalysis/HeuristicLab.Problems.Instances.TSPLIB.Views 5370-5682 /branches/Trunk/HeuristicLab.Problems.Instances.TSPLIB.Views 6829-6865 /branches/VNS/HeuristicLab.Problems.Instances.TSPLIB.Views 5594-5752 /branches/histogram/HeuristicLab.Problems.Instances.TSPLIB.Views 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/sources/HeuristicLab.Problems.Instances.TSPLIB.Views/3.3/TSPLIBTSPInstanceProviderView.cs
r7558 r7823 24 24 using HeuristicLab.MainForm; 25 25 using HeuristicLab.MainForm.WindowsForms; 26 using HeuristicLab.Optimization.Views; 26 using HeuristicLab.Problems.Instances.Views; 27 using System.IO; 27 28 28 29 namespace HeuristicLab.Problems.Instances.TSPLIB.Views { 29 30 [View("TSPLIB TSP InstanceProvider View")] 30 31 [Content(typeof(TSPLIBTSPInstanceProvider), IsDefaultView = true)] 31 public partial class TSPLIBTSPInstanceProviderView : ProblemInstanceProviderView <TSPData> {32 public partial class TSPLIBTSPInstanceProviderView : ProblemInstanceProviderViewGeneric<TSPData> { 32 33 public new TSPLIBTSPInstanceProvider Content { 33 34 get { return (TSPLIBTSPInstanceProvider)base.Content; } … … 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.