Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/12 23:54:58 (13 years ago)
Author:
abeham
Message:

#1722

  • fixed some problems that were identified with the first existing FxCop rules (duplicate storable hook in ExternalEvaluationProblem, multiple wrong names)
  • generally renamed AttachEventHandlers to RegisterEventHandlers to be consistent
  • fixed some backwards compatible regions to use the format from the snippet and the comment
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs

    r7259 r7351  
    100100    private KnapsackProblem(KnapsackProblem original, Cloner cloner)
    101101      : base(original, cloner) {
    102       AttachEventHandlers();
     102      RegisterEventHandlers();
    103103    }
    104104    public override IDeepCloneable Clone(Cloner cloner) {
     
    124124
    125125      InitializeOperators();
    126       AttachEventHandlers();
     126      RegisterEventHandlers();
    127127    }
    128128
     
    194194      if (Operators.Count == 0) InitializeOperators();
    195195      #endregion
    196       AttachEventHandlers();
    197     }
    198 
    199     private void AttachEventHandlers() {
     196      RegisterEventHandlers();
     197    }
     198
     199    private void RegisterEventHandlers() {
    200200      SolutionCreator.BinaryVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_BinaryVectorParameter_ActualNameChanged);
    201201      KnapsackCapacityParameter.ValueChanged += new EventHandler(KnapsackCapacityParameter_ValueChanged);
Note: See TracChangeset for help on using the changeset viewer.