Changeset 9242 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3
- Timestamp:
- 02/25/13 12:37:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblem.cs
r9226 r9242 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using HeuristicLab.Common; … … 184 185 InitializeOperators(); 185 186 186 problemData.Changed += new System.EventHandler(problemData_Changed); 187 } 188 189 private void problemData_Changed(object sender, System.EventArgs e) { 190 SetPossibleActions(); 191 } 187 //test event handlers after deserialization 188 RegisterEventHandlers(); 189 } 190 191 private void RegisterEventHandlers() { 192 ProblemDataParameter.ValueChanged += new EventHandler(ProblemDataParameter_ValueChanged); 193 if (ProblemDataParameter.Value != null) ProblemDataParameter.Value.Changed += new EventHandler(ProblemData_Changed); 194 } 195 196 private void ProblemDataParameter_ValueChanged(object sender, EventArgs e) { 197 ProblemDataParameter.Value.Changed += new EventHandler(ProblemData_Changed); 198 SetProblemDataSettings(); 199 OnReset(); 200 } 201 202 private void ProblemData_Changed(object sender, EventArgs e) { 203 SetProblemDataSettings(); 204 } 205 206 protected abstract void SetProblemDataSettings(); 192 207 193 208 private void InitializeOperators() {
Note: See TracChangeset
for help on using the changeset viewer.