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.Core.Views/3.3/ParameterizedNamedItemView.cs

    r3566 r3904  
    4545      base.OnContentChanged();
    4646      parameterCollectionView.Content = Content == null ? null : Content.Parameters;
    47       SetEnabledStateOfControls();
    4847    }
    4948
    50     protected override void OnReadOnlyChanged() {
    51       base.OnReadOnlyChanged();
    52       SetEnabledStateOfControls();
    53     }
    54 
    55     private void SetEnabledStateOfControls() {
     49    protected override void SetEnabledStateOfControls() {
     50      base.SetEnabledStateOfControls();
    5651      parameterCollectionView.Enabled = Content != null;
    5752    }
Note: See TracChangeset for help on using the changeset viewer.