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.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r3719 r3739  
    165165    public event EventHandler SolutionCreatorChanged;
    166166    private void OnSolutionCreatorChanged() {
    167       if (SolutionCreatorChanged != null)
    168         SolutionCreatorChanged(this, EventArgs.Empty);
     167      EventHandler handler = SolutionCreatorChanged;
     168      if (handler != null) handler(this, EventArgs.Empty);
    169169    }
    170170    public event EventHandler EvaluatorChanged;
    171171    private void OnEvaluatorChanged() {
    172       if (EvaluatorChanged != null)
    173         EvaluatorChanged(this, EventArgs.Empty);
     172      EventHandler handler = EvaluatorChanged;
     173      if (handler != null) handler(this, EventArgs.Empty);
    174174    }
    175175    public event EventHandler OperatorsChanged;
    176176    private void OnOperatorsChanged() {
    177       if (OperatorsChanged != null)
    178         OperatorsChanged(this, EventArgs.Empty);
    179     }
     177      EventHandler handler = OperatorsChanged;
     178      if (handler != null) handler(this, EventArgs.Empty);
     179    }
     180    public event EventHandler Reset;
     181    private void OnReset() {
     182      EventHandler handler = Reset;
     183      if (handler != null) handler(this, EventArgs.Empty);
     184    }
     185
    180186    private void ProblemSizeParameter_ValueChanged(object sender, EventArgs e) {
    181187      ProblemSize.ValueChanged += new EventHandler(ProblemSize_ValueChanged);
Note: See TracChangeset for help on using the changeset viewer.