Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/10 17:46:53 (15 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.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs

    r3765 r3904  
    6666      if (createdVisualizationInfo)
    6767        this.graphVisualizationInfoView.RelayoutGraph();
    68 
    69       this.SetEnabledStateOfControls();
    70     }
    71 
    72     protected override void OnReadOnlyChanged() {
    73       base.OnReadOnlyChanged();
    74       this.SetEnabledStateOfControls();
    75     }
    76 
    77     protected override void OnLockedChanged() {
    78       base.OnLockedChanged();
    79       this.SetEnabledStateOfControls();
    80     }
    81 
    82     private void SetEnabledStateOfControls() {
     68    }
     69
     70    protected override void SetEnabledStateOfControls() {
     71      base.SetEnabledStateOfControls();
    8372      if (Content == null) {
    8473        selectButton.Enabled = false;
Note: See TracChangeset for help on using the changeset viewer.