Changeset 6587 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 07/22/11 14:57:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs
r5809 r6587 48 48 public T ProblemData { 49 49 get { return ProblemDataParameter.Value; } 50 protected set { ProblemDataParameter.Value = value; } 50 protected set { 51 ProblemDataParameter.Value = value; 52 } 51 53 } 52 54 #endregion 53 55 protected DataAnalysisProblem(DataAnalysisProblem<T> original, Cloner cloner) 54 56 : base(original, cloner) { 57 RegisterEventHandlers(); 55 58 } 56 59 [StorableConstructor] … … 59 62 : base() { 60 63 Parameters.Add(new ValueParameter<T>(ProblemDataParameterName, ProblemDataParameterDescription)); 64 RegisterEventHandlers(); 65 } 66 67 [StorableHook(HookType.AfterDeserialization)] 68 private void AfterDeserialization() { 69 RegisterEventHandlers(); 61 70 } 62 71 63 72 private void RegisterEventHandlers() { 73 ProblemDataParameter.ValueChanged += new EventHandler(ProblemDataParameter_ValueChanged); 74 if (ProblemDataParameter.Value != null) ProblemDataParameter.Value.Changed += new EventHandler(ProblemDataParameter_ValueChanged); 75 } 76 77 private void ProblemDataParameter_ValueChanged(object sender, EventArgs e) { 64 78 ProblemDataParameter.Value.Changed += new EventHandler(ProblemDataParameter_ValueChanged); 65 }66 private void ProblemDataParameter_ValueChanged(object sender, EventArgs e) {67 79 OnProblemDataChanged(); 68 80 OnReset();
Note: See TracChangeset
for help on using the changeset viewer.