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.Optimization.Views/3.3/RunCollectionView.cs

    r3829 r3904  
    121121          tabControl.TabPages.Remove(constraintPage);
    122122      }
    123       SetEnabledStateOfControls();
    124     }
    125 
    126     protected override void OnReadOnlyChanged() {
    127       base.OnReadOnlyChanged();
    128       SetEnabledStateOfControls();
    129     }
    130     private void SetEnabledStateOfControls() {
     123    }
     124
     125    protected override void SetEnabledStateOfControls() {
     126      base.SetEnabledStateOfControls();
    131127      if (Content == null) {
    132128        analyzeRunsToolStripDropDownButton.Enabled = false;
Note: See TracChangeset for help on using the changeset viewer.