Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/03/12 09:29:07 (12 years ago)
Author:
sforsten
Message:

#1784:

  • ProblemInstanceProvider are sorted now
  • the return values of ValueGenerator have been changed to !IEnumerable
  • changes have been applied to classes which are using the ValueGenerator
  • change of the cast in ProblemInstanceProviderViewGeneric and !importButton.Enable is set now in SetEnabledStateOfControls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceProviderViewGeneric.cs

    r7684 r7698  
    3939    }
    4040
    41     private IProblemInstanceConsumer<T> GenericConsumer { get { return (IProblemInstanceConsumer<T>)Consumer; } }
     41    private IProblemInstanceConsumer<T> GenericConsumer { get { return Consumer as IProblemInstanceConsumer<T>; } }
    4242    public IProblemInstanceConsumer consumer;
    4343    public override IProblemInstanceConsumer Consumer {
     
    4949    }
    5050
    51     private IProblemInstanceExporter<T> GenericExporter { get { return (IProblemInstanceExporter<T>)Exporter; } }
     51    private IProblemInstanceExporter<T> GenericExporter { get { return Exporter as IProblemInstanceExporter<T>; } }
    5252    private IProblemInstanceExporter exporter;
    5353    public override IProblemInstanceExporter Exporter {
     
    8686      instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null;
    8787      loadButton.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null;
     88      importButton.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null;
    8889      exportButton.Enabled = !ReadOnly && !Locked && Content != null && GenericExporter != null;
    8990      problemInstanceProviderSplitContainer.Panel2Collapsed = !exportButton.Enabled;
Note: See TracChangeset for help on using the changeset viewer.