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.Parameters.Views/3.3/ScopeTreeLookupParameterView.cs

    r3764 r3904  
    8080        depthTextBox.Text = Content.Depth.ToString();
    8181      }
    82       SetEnabledStateOfControls();
    8382    }
    8483
    85     protected override void OnReadOnlyChanged() {
    86       base.OnReadOnlyChanged();
    87       SetEnabledStateOfControls();
    88     }
    89 
    90     private void SetEnabledStateOfControls() {
     84    protected override void SetEnabledStateOfControls() {
     85      base.SetEnabledStateOfControls();
    9186      actualNameTextBox.Enabled = Content != null;
    9287      actualNameTextBox.ReadOnly = ReadOnly;
Note: See TracChangeset for help on using the changeset viewer.