Ignore:
Timestamp:
12/19/18 14:15:49 (3 months ago)
Author:
ddorfmei
Message:

#2931:

  • moved views to separate plugin HeuristicLab.MathematicalOptimization.Views
  • added button in LinearProgrammingProblemView to select the problem definition type
  • added views for problem definitions
  • added ExportFile parameter to LinearProgrammingAlgorithm
  • extended FileValue and FileValueView by the option to save a file
  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.Data.Views/3.3/Path Views/FileValueView.cs

    r15583 r16405  
    5555
    5656    protected virtual void openButton_Click(object sender, EventArgs e) {
    57       openFileDialog.Filter = Content.FileDialogFilter;
    58       if (openFileDialog.ShowDialog(this) != DialogResult.OK) return;
    59       Content.Value = openFileDialog.FileName;
     57      var fileDialog = Content.SaveFile ? (FileDialog)saveFileDialog : openFileDialog;
     58      fileDialog.Filter = Content.FileDialogFilter;
     59      if (fileDialog.ShowDialog(this) != DialogResult.OK) return;
     60      Content.Value = fileDialog.FileName;
    6061    }
    6162  }
Note: See TracChangeset for help on using the changeset viewer.