Ignore:
Timestamp:
12/22/16 10:07:46 (6 years ago)
Author:
jkarder
Message:

#2524: made BasicAlgorithm pausable

File:
1 edited

Legend:

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

    r14185 r14517  
    3636    protected override void SetEnabledStateOfControls() {
    3737      base.SetEnabledStateOfControls();
    38       pauseButton.Enabled = false;
     38      pauseButton.Enabled &= Content != null && Content.Pausable;
    3939    }
    4040
    4141    protected override void SetEnabledStateOfExecutableButtons() {
    4242      base.SetEnabledStateOfExecutableButtons();
    43       pauseButton.Enabled = false;
     43      pauseButton.Enabled &= Content != null && Content.Pausable;
    4444    }
    4545  }
Note: See TracChangeset for help on using the changeset viewer.