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.Optimization.Operators/3.3/MultiObjective/CrowdingDistanceAssignment.cs

    r7259 r7351  
    5353      Parameters.Add(new ScopeTreeLookupParameter<DoubleArray>("Qualities", "The vector of quality values."));
    5454      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("CrowdingDistance", "Sets the crowding distance in each sub-scope."));
    55       AttachEventHandlers();
     55      RegisterEventHandlers();
    5656    }
    5757
    5858    [StorableHook(HookType.AfterDeserialization)]
    59     private void AttachEventHandlers() {
     59    private void AfterDeserialization() {
     60      RegisterEventHandlers();
     61    }
     62
     63    private void RegisterEventHandlers() {
    6064      QualitiesParameter.DepthChanged += new EventHandler(QualitiesParameter_DepthChanged);
    6165    }
Note: See TracChangeset for help on using the changeset viewer.