Ignore:
Timestamp:
01/17/12 23:54:58 (10 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.ArtificialAnt/3.4/ArtificialAntProblem.cs

    r7259 r7351  
    151151    [StorableHook(HookType.AfterDeserialization)]
    152152    private void AfterDeserialization() {
    153       AttachEventHandlers();
     153      RegisterEventHandlers();
    154154    }
    155155
    156156    private ArtificialAntProblem(ArtificialAntProblem original, Cloner cloner)
    157157      : base(original, cloner) {
    158       AttachEventHandlers();
     158      RegisterEventHandlers();
    159159    }
    160160    public override IDeepCloneable Clone(Cloner cloner) {
     
    179179      Evaluator.QualityParameter.ActualName = "FoodEaten";
    180180      InitializeOperators();
    181       AttachEventHandlers();
     181      RegisterEventHandlers();
    182182    }
    183183
     
    212212
    213213    #region Helpers
    214     private void AttachEventHandlers() {
     214    private void RegisterEventHandlers() {
    215215      SolutionCreator.SymbolicExpressionTreeParameter.ActualNameChanged += new EventHandler(SolutionCreator_SymbolicExpressionTreeParameter_ActualNameChanged);
    216216      Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged);
Note: See TracChangeset for help on using the changeset viewer.