Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/01/10 11:13:46 (14 years ago)
Author:
svonolfe
Message:

Merged r4351 of the VRP feature branch into trunk (#1039)

Location:
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting.Views

  • trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VehicleRoutingProblemView.cs

    r4185 r4352  
    6464      parameterCollectionView.Enabled = Content != null;
    6565      vrpSolutionView.Enabled = Content != null;
    66       importButton.Enabled = Content != null && !ReadOnly;
     66      importButton.Enabled = importButton2.Enabled = importButton3.Enabled = Content != null && !ReadOnly;
    6767    }
    6868
    6969    private void importButton_Click(object sender, EventArgs e) {
    7070      OpenFileDialog dialog = new OpenFileDialog();
    71       dialog.DefaultExt = "txt";
     71      dialog.Filter = "Solomon files (*.txt)|*.txt";
    7272
    7373      if (dialog.ShowDialog() == DialogResult.OK) {
     
    7676    }
    7777
     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
    7896    private void CoordinatesParameter_ValueChanged(object sender, EventArgs e) {
    7997      vrpSolutionView.Content.Coordinates = Content.Coordinates;
    80     }
     98    } 
    8199  }
    82100}
Note: See TracChangeset for help on using the changeset viewer.