Changeset 2701 for trunk/sources/HeuristicLab.GP/3.3/FunctionLibrary.cs
- Timestamp:
- 01/28/10 16:43:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP/3.3/FunctionLibrary.cs
r2222 r2701 42 42 if (!functions.Contains(fun)) { 43 43 functions.Add(fun); 44 fun.Changed += new EventHandler(fun_Changed); 44 45 OnChanged(); 45 46 } … … 48 49 public void RemoveFunction(IFunction fun) { 49 50 functions.Remove(fun); 51 fun.Changed -= new EventHandler(fun_Changed); 50 52 51 53 // remove the operator from the allowed sub-functions of all functions … … 55 57 } 56 58 } 59 OnChanged(); 60 } 61 62 void fun_Changed(object sender, EventArgs e) { 57 63 OnChanged(); 58 64 }
Note: See TracChangeset
for help on using the changeset viewer.