Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/17 13:30:36 (7 years ago)
Author:
bburlacu
Message:

#2760: Set check state of the shuffle samples checkbox inside the OnContentChanged method. Enable shuffle samples only when the CrossValidation is prepared.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/CrossValidationView.cs

    r15002 r15111  
    6161        runCollectionView.Content = null;
    6262        storeAlgorithmInEachRunCheckBox.Checked = true;
     63        shuffleSamplesCheckBox.Checked = false;
    6364      } else {
    6465        Locked = ReadOnly = Content.ExecutionState == ExecutionState.Started;
     
    7475        executionTimeTextBox.Text = Content.ExecutionTime.ToString();
    7576        storeAlgorithmInEachRunCheckBox.Checked = Content.StoreAlgorithmInEachRun;
     77        shuffleSamplesCheckBox.Checked = Content.ShuffleSamples.Value;
    7678      }
    7779    }
     
    137139          stopButton.Enabled = (Content.ExecutionState == ExecutionState.Started) || (Content.ExecutionState == ExecutionState.Paused);
    138140          resetButton.Enabled = Content.ExecutionState != ExecutionState.Started;
    139           shuffleSamplesCheckBox.Checked = Content.ShuffleSamples.Value;
    140141          // prevent changing the shuffle if the algorithm is not finished
    141           shuffleSamplesCheckBox.Enabled = Content.ExecutionState == ExecutionState.Prepared ||
    142                                            Content.ExecutionState == ExecutionState.Stopped;
     142          shuffleSamplesCheckBox.Enabled = Content.ExecutionState == ExecutionState.Prepared;
    143143        }
    144144      }
Note: See TracChangeset for help on using the changeset viewer.