Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/14 19:36:38 (10 years ago)
Author:
mkommend
Message:

#2197: Merged r11093 into stable.

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.cs

    r11144 r11149  
    2121
    2222using System;
    23 using System.Windows.Forms;
     23using System.Linq;
    2424using HeuristicLab.MainForm;
    2525using HeuristicLab.Problems.DataAnalysis.Views;
     
    4040    protected override void SetEnabledStateOfControls() {
    4141      base.SetEnabledStateOfControls();
    42       btnSimplify.Enabled = Content != null && !Locked;
     42      btnSimplify.Enabled = Content != null && !Locked && Content.ProblemData.TrainingIndices.Any(); // simplification is only possible if there are trainings samples
    4343    }
    4444
    4545    private void btn_SimplifyModel_Click(object sender, EventArgs e) {
    46       InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView view = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView();
     46      var view = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView();
    4747      view.Content = (SymbolicTimeSeriesPrognosisSolution)this.Content.Clone();
    4848      view.Show();
Note: See TracChangeset for help on using the changeset viewer.