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.Operators.Views.GraphVisualization/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/General/GraphVisualizationInfoView.cs

    r3566 r3904  
    6969    }
    7070
    71     protected override void OnReadOnlyChanged() {
    72       base.OnReadOnlyChanged();
    73       this.SetEnabledStateOfControls();
    74     }
    75     protected override void OnLockedChanged() {
    76       base.OnLockedChanged();
    77       this.SetEnabledStateOfControls();
    78     }
    79     private void SetEnabledStateOfControls() {
     71    protected override void SetEnabledStateOfControls() {
     72      base.SetEnabledStateOfControls();
    8073      DeleteTool deleteTool = (DeleteTool)this.Controller.Tools.Where(t => t.Name == ControllerBase.DeleteToolName).FirstOrDefault();
    8174      HeuristicLab.Netron.Controller controller = this.Controller as HeuristicLab.Netron.Controller;
     
    10598        this.UpdateLayoutRoot();
    10699      }
    107       this.SetEnabledStateOfControls();
    108100    }
    109101    private void UpdateLayoutRoot() {
  • 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.