Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/11 16:07:21 (13 years ago)
Author:
ascheibe
Message:

#1714 stopping an optimizer or a batch run inside an experiment now enables the prepare button in the parent if there are no other running optimizers or batch runs in the experiment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Experiment.cs

    r6767 r7196  
    336336    private void optimizer_Stopped(object sender, EventArgs e) {
    337337      if (experimentStopped && Optimizers.All(o => o.ExecutionState == ExecutionState.Stopped || o.ExecutionState == ExecutionState.Prepared)) OnStopped();
    338       else if (Optimizers.All(o => o.ExecutionState == ExecutionState.Stopped)) OnStopped();
     338      else if (Optimizers.Any(o => o.ExecutionState == ExecutionState.Stopped) && Optimizers.All(o => o.ExecutionState != ExecutionState.Started)) OnStopped();
    339339      else if (Optimizers.Any(o => o.ExecutionState == ExecutionState.Paused) && Optimizers.All(o => o.ExecutionState != ExecutionState.Started)) OnPaused();
    340340      else if (experimentStarted && !experimentStopped && Optimizers.Any(x => (x.ExecutionState == ExecutionState.Prepared) || (x.ExecutionState == ExecutionState.Paused))) {
Note: See TracChangeset for help on using the changeset viewer.