Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/10 04:13:49 (14 years ago)
Author:
mkommend
Message:

adapted HL.Optimization.Views to new ReadOnly mechanism (ticket #973)

File:
1 edited

Legend:

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

    r3361 r3367  
    101101        createUserDefinedAlgorithmButton.Enabled = true;
    102102      }
     103      SetEnableStateOfControls();
     104    }
     105
     106    protected override void OnReadOnlyChanged() {
     107      base.OnReadOnlyChanged();
     108      SetEnableStateOfControls();
     109    }
     110    private void SetEnableStateOfControls() {
     111      engineViewHost.ReadOnly = ReadOnly;
     112      if (Content == null)
     113        engineComboBox.Enabled = false;
     114      else
     115        engineComboBox.Enabled = Content.ExecutionState != ExecutionState.Started;
    103116    }
    104117
     
    108121      else {
    109122        createUserDefinedAlgorithmButton.Enabled = Content.ExecutionState != ExecutionState.Started;
    110         engineComboBox.Enabled = Content.ExecutionState != ExecutionState.Started;
    111         engineViewHost.Enabled = Content.ExecutionState != ExecutionState.Started;
    112         operatorGraphViewHost.Enabled = Content.ExecutionState != ExecutionState.Started;
    113123        base.Content_ExecutionStateChanged(sender, e);
    114124      }
Note: See TracChangeset for help on using the changeset viewer.