Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/11 13:32:16 (13 years ago)
Author:
mkommend
Message:

#1552: Corrected event handler registration in DataAnalysisProblem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs

    r6587 r6635  
    7272    private void RegisterEventHandlers() {
    7373      ProblemDataParameter.ValueChanged += new EventHandler(ProblemDataParameter_ValueChanged);
    74       if (ProblemDataParameter.Value != null) ProblemDataParameter.Value.Changed += new EventHandler(ProblemDataParameter_ValueChanged);
     74      if (ProblemDataParameter.Value != null) ProblemDataParameter.Value.Changed += new EventHandler(ProblemData_Changed);
    7575    }
    7676
    7777    private void ProblemDataParameter_ValueChanged(object sender, EventArgs e) {
    78       ProblemDataParameter.Value.Changed += new EventHandler(ProblemDataParameter_ValueChanged);
     78      ProblemDataParameter.Value.Changed += new EventHandler(ProblemData_Changed);
    7979      OnProblemDataChanged();
     80      OnReset();
     81    }
     82
     83    private void ProblemData_Changed(object sender, EventArgs e) {
    8084      OnReset();
    8185    }
Note: See TracChangeset for help on using the changeset viewer.