Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/14 14:14:42 (10 years ago)
Author:
gkronber
Message:

#2197: fixed bugs in views for data analysis solutions that might occur if the problem does not have training samples (e.g. when the data is loaded into an existing solution)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.cs

    r10894 r11093  
    2222using System;
    2323using System.ComponentModel;
     24using System.Linq;
    2425using System.Windows.Forms;
    2526using HeuristicLab.MainForm;
     
    4243    protected override void SetEnabledStateOfControls() {
    4344      base.SetEnabledStateOfControls();
    44       btnSimplify.Enabled = Content != null && !Locked;
     45      btnSimplify.Enabled = Content != null && !Locked && Content.ProblemData.TrainingIndices.Any(); // simplification is only possible if there are trainings samples
    4546      exportButton.Enabled = Content != null && !Locked;
    4647    }
Note: See TracChangeset for help on using the changeset viewer.