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.Problems.TravelingSalesman.Views/3.3/TravelingSalesmanProblemView.cs

    r3758 r3904  
    7171        pathTSPTourView.Content = new PathTSPTour(Content.Coordinates, Content.BestKnownSolution, Content.BestKnownQuality);
    7272      }
    73       SetEnabledStateOfControls();
    7473    }
    7574
    76     protected override void OnReadOnlyChanged() {
    77       base.OnReadOnlyChanged();
    78       SetEnabledStateOfControls();
    79     }
    80 
    81     private void SetEnabledStateOfControls() {
     75    protected override void SetEnabledStateOfControls() {
     76      base.SetEnabledStateOfControls();
    8277      parameterCollectionView.Enabled = Content != null;
    8378      pathTSPTourView.Enabled = Content != null;
Note: See TracChangeset for help on using the changeset viewer.