Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/10 14:18:22 (15 years ago)
Author:
swagner
Message:

Added Reset event to IProblem (#1006)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntProblem.cs

    r3681 r3739  
    230230    public event EventHandler SolutionCreatorChanged;
    231231    private void OnSolutionCreatorChanged() {
    232       var changed = SolutionCreatorChanged;
    233       if (changed != null)
    234         changed(this, EventArgs.Empty);
     232      EventHandler handler = SolutionCreatorChanged;
     233      if (handler != null) handler(this, EventArgs.Empty);
    235234    }
    236235    public event EventHandler EvaluatorChanged;
    237236    private void OnEvaluatorChanged() {
    238       var changed = EvaluatorChanged;
    239       if (changed != null)
    240         changed(this, EventArgs.Empty);
    241     }
    242 
     237      EventHandler handler = EvaluatorChanged;
     238      if (handler != null) handler(this, EventArgs.Empty);
     239    }
    243240    public event EventHandler OperatorsChanged;
    244241    private void OnOperatorsChanged() {
    245       var changed = OperatorsChanged;
    246       if (changed != null)
    247         changed(this, EventArgs.Empty);
     242      EventHandler handler = OperatorsChanged;
     243      if (handler != null) handler(this, EventArgs.Empty);
     244    }
     245    public event EventHandler Reset;
     246    private void OnReset() {
     247      EventHandler handler = Reset;
     248      if (handler != null) handler(this, EventArgs.Empty);
    248249    }
    249250
Note: See TracChangeset for help on using the changeset viewer.