Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/10 17:46:53 (12 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.Encodings.PermutationEncoding.Views/3.3/PermutationTypeView.cs

    r3797 r3904  
    6868      else
    6969        valueComboBox.SelectedItem = Content.Value;
    70       SetEnabledStateOfControls();
    7170    }
    72     protected override void OnReadOnlyChanged() {
    73       base.OnReadOnlyChanged();
    74       SetEnabledStateOfControls();
    75     }
    76     private void SetEnabledStateOfControls() {
     71
     72    protected override void SetEnabledStateOfControls() {
     73      base.SetEnabledStateOfControls();
    7774      if (Content == null) valueComboBox.Enabled = false;
    7875      else valueComboBox.Enabled = !ReadOnly;
Note: See TracChangeset for help on using the changeset viewer.