Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12022 for trunk/sources


Ignore:
Timestamp:
02/17/15 15:54:16 (10 years ago)
Author:
mkommend
Message:

#2325: Registered run events after cloning and deserialization in RunCollection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs

    r12012 r12022  
    6060      RegisterConstraintEvents(constraints);
    6161
     62      foreach (var run in this) {
     63        RegisterRunParametersEvents(run);
     64        RegisterRunResultsEvents(run);
     65      }
     66
    6267      UpdateFiltering(true);
    6368    }
     
    133138      RegisterConstraintsEvents();
    134139      RegisterConstraintEvents(constraints);
     140
     141      foreach (var run in this) {
     142        RegisterRunParametersEvents(run);
     143        RegisterRunResultsEvents(run);
     144      }
    135145      UpdateFiltering(true);
    136146    }
     
    489499    }
    490500
    491     protected virtual void RegisterConstraintEvents(IEnumerable<IRunCollectionConstraint> constraints) {
     501    private void RegisterConstraintEvents(IEnumerable<IRunCollectionConstraint> constraints) {
    492502      foreach (IRunCollectionConstraint constraint in constraints) {
    493503        constraint.ActiveChanged += new EventHandler(Constraint_ActiveChanged);
     
    497507      }
    498508    }
    499     protected virtual void DeregisterConstraintEvents(IEnumerable<IRunCollectionConstraint> constraints) {
     509    private void DeregisterConstraintEvents(IEnumerable<IRunCollectionConstraint> constraints) {
    500510      foreach (IRunCollectionConstraint constraint in constraints) {
    501511        constraint.ActiveChanged -= new EventHandler(Constraint_ActiveChanged);
Note: See TracChangeset for help on using the changeset viewer.