Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/10 17:46:53 (14 years ago)
Author:
mkommend
Message:

Added SetEnabledStateOfControls as protected virtual method in !View. Therefore the overloading of OnReadOnlyChanged and OnLockedChanged got obsolete in most views, because the method got called in the !View respectively ContentView. (ticket #1021)

File:
1 edited

Legend:

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

    r3759 r3904  
    9090        operatorGraphViewHost.Content = Content.OperatorGraph;
    9191      }
    92       SetEnableStateOfControls();
    9392    }
    9493
    95     protected override void OnReadOnlyChanged() {
    96       base.OnReadOnlyChanged();
    97       SetEnableStateOfControls();
    98     }
    99     protected override void OnLockedChanged() {
    100       base.OnLockedChanged();
    101       SetEnableStateOfControls();
    102     }
    103     private void SetEnableStateOfControls() {
     94    protected override void SetEnabledStateOfControls() {
     95      base.SetEnabledStateOfControls();
    10496      engineViewHost.Enabled = Content != null;
    10597      newOperatorGraphButton.Enabled = false;
Note: See TracChangeset for help on using the changeset viewer.