Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/11 17:48:53 (13 years ago)
Author:
mkommend
Message:

#1479: Integrated trunk changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisSolution.cs

    r6415 r6618  
    4848          if (value != null) {
    4949            this[ModelResultName].Value = value;
    50             OnModelChanged(EventArgs.Empty);
     50            OnModelChanged();
    5151          }
    5252        }
     
    6262            this[ProblemDataResultName].Value = value;
    6363            ProblemData.Changed += new EventHandler(ProblemData_Changed);
    64             OnProblemDataChanged(EventArgs.Empty);
     64            OnProblemDataChanged();
    6565          }
    6666        }
     
    8080      name = ItemName;
    8181      description = ItemDescription;
    82       Add(new Result(ModelResultName, "The symbolic data analysis model.", model));
    83       Add(new Result(ProblemDataResultName, "The symbolic data analysis problem data.", problemData));
     82      Add(new Result(ModelResultName, "The data analysis model.", model));
     83      Add(new Result(ProblemDataResultName, "The data analysis problem data.", problemData));
    8484
    8585      problemData.Changed += new EventHandler(ProblemData_Changed);
     
    8989
    9090    private void ProblemData_Changed(object sender, EventArgs e) {
    91       OnProblemDataChanged(e);
     91      OnProblemDataChanged();
    9292    }
    9393
    9494    public event EventHandler ModelChanged;
    95     protected virtual void OnModelChanged(EventArgs e) {
     95    protected virtual void OnModelChanged() {
     96      RecalculateResults();
    9697      RecalculateResults();
    9798      var listeners = ModelChanged;
    98       if (listeners != null) listeners(this, e);
     99      if (listeners != null) listeners(this, EventArgs.Empty);
    99100    }
    100101
    101102    public event EventHandler ProblemDataChanged;
    102     protected virtual void OnProblemDataChanged(EventArgs e) {
     103    protected virtual void OnProblemDataChanged() {
     104      RecalculateResults();
    103105      RecalculateResults();
    104106      var listeners = ProblemDataChanged;
    105       if (listeners != null) listeners(this, e);
     107      if (listeners != null) listeners(this, EventArgs.Empty);
    106108    }
    107109
Note: See TracChangeset for help on using the changeset viewer.