Changeset 4352 for trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VehicleRoutingProblemView.cs
- Timestamp:
- 09/01/10 11:13:46 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting.Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views
-
Property
svn:mergeinfo
set to
/branches/VRP/HeuristicLab.Problems.VehicleRouting.Views merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VehicleRoutingProblemView.cs
r4185 r4352 64 64 parameterCollectionView.Enabled = Content != null; 65 65 vrpSolutionView.Enabled = Content != null; 66 importButton.Enabled = Content != null && !ReadOnly;66 importButton.Enabled = importButton2.Enabled = importButton3.Enabled = Content != null && !ReadOnly; 67 67 } 68 68 69 69 private void importButton_Click(object sender, EventArgs e) { 70 70 OpenFileDialog dialog = new OpenFileDialog(); 71 dialog. DefaultExt = "txt";71 dialog.Filter = "Solomon files (*.txt)|*.txt"; 72 72 73 73 if (dialog.ShowDialog() == DialogResult.OK) { … … 76 76 } 77 77 78 private void importButton2_Click(object sender, EventArgs e) { 79 OpenFileDialog dialog = new OpenFileDialog(); 80 dialog.Filter = "TSPLib files (*.vrp)|*.vrp"; 81 82 if (dialog.ShowDialog() == DialogResult.OK) { 83 Content.ImportFromTSPLib(dialog.FileName); 84 } 85 } 86 87 private void importButton3_Click(object sender, EventArgs e) { 88 OpenFileDialog dialog = new OpenFileDialog(); 89 dialog.Filter = "ORLib files (*.txt)|*.txt"; 90 91 if (dialog.ShowDialog() == DialogResult.OK) { 92 Content.ImportFromORLib(dialog.FileName); 93 } 94 } 95 78 96 private void CoordinatesParameter_ValueChanged(object sender, EventArgs e) { 79 97 vrpSolutionView.Content.Coordinates = Content.Coordinates; 80 } 98 } 81 99 } 82 100 }
Note: See TracChangeset
for help on using the changeset viewer.