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)

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.cs

    r3824 r3904  
    6262    }
    6363
    64     protected override void OnReadOnlyChanged() {
    65       base.OnReadOnlyChanged();
    66       SetEnabledStateOfControls();
    67     }
    68 
    69     private void SetEnabledStateOfControls() {
     64    protected override void SetEnabledStateOfControls() {
     65      base.SetEnabledStateOfControls();
    7066      minValueTextBox.Enabled = Content != null;
    7167      maxValueTextBox.Enabled = Content != null;
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs

    r3824 r3904  
    6262    }
    6363
    64     protected override void OnReadOnlyChanged() {
    65       base.OnReadOnlyChanged();
    66       SetEnabledStateOfControls();
    67     }
    68 
    69     private void SetEnabledStateOfControls() {
     64    protected override void SetEnabledStateOfControls() {
     65      base.SetEnabledStateOfControls();
    7066      weightNuTextBox.Enabled = Content != null;
    7167      weightSigmaTextBox.Enabled = Content != null;
Note: See TracChangeset for help on using the changeset viewer.