Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 16:46:35 (12 years ago)
Author:
gkronber
Message:

#1847: merged r8084:8205 from trunk into GP move operators branch

Location:
branches/GP-MoveOperators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceConsumerViewGeneric.cs

    r8031 r8206  
    9292      problemInstanceProviderComboBox.Enabled = !ReadOnly && !Locked && Content != null && problemInstanceProviderComboBox.Items.Count > 0;
    9393      libraryInfoButton.Enabled = SelectedProvider != null && SelectedProvider.WebLink != null;
    94       importButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null;
    95       exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null;
    96       problemInstanceProviderSplitContainer.Panel2Collapsed = !exportButton.Enabled;
     94      importButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null &&
     95                             GenericSelectedProvider != null && GenericSelectedProvider.CanImportData;
     96      ProviderImportSplitContainer.Panel2Collapsed = !importButton.Enabled;
     97      exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null &&
     98                             GenericSelectedProvider != null && GenericSelectedProvider.CanExportData;
     99      ProviderExportSplitContainer.Panel2Collapsed = !exportButton.Enabled;
    97100    }
    98101
     
    131134        T instance = default(T);
    132135        try {
    133           instance = GenericSelectedProvider.LoadData(openFileDialog.FileName);
     136          instance = GenericSelectedProvider.ImportData(openFileDialog.FileName);
    134137        }
    135138        catch (Exception ex) {
     
    146149    }
    147150
    148     protected void exportButton_Click(object sender, EventArgs e) {
     151    protected virtual void exportButton_Click(object sender, EventArgs e) {
    149152      if (saveFileDialog.ShowDialog(this) == DialogResult.OK) {
    150153        try {
    151           GenericSelectedProvider.SaveData(GenericExporter.Export(), saveFileDialog.FileName);
     154          GenericSelectedProvider.ExportData(GenericExporter.Export(), saveFileDialog.FileName);
    152155        }
    153156        catch (Exception ex) {
     
    164167    protected void SetTooltip() {
    165168      toolTip.SetToolTip(problemInstanceProviderComboBox, GetProviderToolTip());
    166       toolTip.SetToolTip(importButton, "Open a " + GetProblemType() + " problem from file.");
     169      toolTip.SetToolTip(importButton, "Import a " + GetProblemType() + " problem from file.");
    167170      toolTip.SetToolTip(exportButton, "Export currently loaded " + GetProblemType() + " problem to a file.");
    168171      if (SelectedProvider.WebLink != null)
Note: See TracChangeset for help on using the changeset viewer.