Changeset 11149 for stable/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.cs
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11093
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.cs
r11144 r11149 21 21 22 22 using System; 23 using System. Windows.Forms;23 using System.Linq; 24 24 using HeuristicLab.MainForm; 25 25 using HeuristicLab.Problems.DataAnalysis.Views; … … 40 40 protected override void SetEnabledStateOfControls() { 41 41 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 43 43 } 44 44 45 45 private void btn_SimplifyModel_Click(object sender, EventArgs e) { 46 InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierViewview = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView();46 var view = new InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView(); 47 47 view.Content = (SymbolicTimeSeriesPrognosisSolution)this.Content.Clone(); 48 48 view.Show();
Note: See TracChangeset
for help on using the changeset viewer.