Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/27/12 13:31:44 (13 years ago)
Author:
sforsten
Message:

#1784:

  • minor bug fixes in several views
Location:
branches/ProblemInstancesRegressionAndClassification
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification

    • Property svn:ignore
      •  

        old new  
        33protoc.exe
        44ProtoGen.exe
         5bin
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4

    • Property svn:ignore set to
      bin
      HeuristicLab.Problems.Instances.Views-3.4.csproj.user
      obj
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceProviderView.cs

    r7664 r7665  
    6868    protected override void SetEnabledStateOfControls() {
    6969      base.SetEnabledStateOfControls();
    70       instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && Content.Consumer != null;
    71       loadButton.Enabled = !ReadOnly && !Locked && Content != null && Content.Consumer != null;
     70      instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null;
     71      loadButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null;
     72      exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null;
     73      problemInstanceProviderSplitContainer.Panel2Collapsed = !exportButton.Enabled;
    7274    }
    7375
     
    7678      var instance = Content.LoadData(descriptor);
    7779      try {
    78         Content.Consumer.Load(instance);
     80        Consumer.Load(instance);
    7981      }
    8082      catch (Exception ex) {
     
    9597        }
    9698        try {
    97           Content.Consumer.Load(instance);
     99          Consumer.Load(instance);
    98100        }
    99101        catch (Exception ex) {
     
    106108      if (saveFileDialog.ShowDialog(this) == DialogResult.OK) {
    107109        try {
    108           var descriptor = (IDataDescriptor)instancesComboBox.SelectedItem;
    109           var instance = Content.LoadData(descriptor);
    110           Content.SaveData(instance, saveFileDialog.FileName);
     110          Content.SaveData(Exporter.Export(), saveFileDialog.FileName);
    111111        }
    112112        catch (Exception ex) {
Note: See TracChangeset for help on using the changeset viewer.