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/VariableView.cs

    r3764 r3904  
    8181        viewHost.Content = Content.Value;
    8282      }
    83       SetEnabledStateOfControls();
    8483    }
    8584
    86     protected override void OnReadOnlyChanged() {
    87       base.OnReadOnlyChanged();
    88       SetEnabledStateOfControls();
    89     }
    90 
    91     private void SetEnabledStateOfControls() {
     85    protected override void SetEnabledStateOfControls() {
     86      base.SetEnabledStateOfControls();
    9287      dataTypeTextBox.Enabled = Content != null && Content.Value != null;
    9388      setValueButton.Enabled = Content != null && !ReadOnly;
Note: See TracChangeset for help on using the changeset viewer.