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

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs

    r3693 r3904  
    7171        tourViewHost.Content = Content.Permutation;
    7272      }
    73       SetEnabledStateOfControls();
    7473    }
    7574
     
    7978    }
    8079
    81     private void SetEnabledStateOfControls() {
     80    protected override void SetEnabledStateOfControls() {
     81      base.SetEnabledStateOfControls();
    8282      qualityGroupBox.Enabled = Content != null;
    8383      pictureBox.Enabled = Content != null;
  • 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.