- Timestamp:
- 07/27/10 19:54:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.FeatureSelection/3.3/FeatureSelectionProblem.cs
r4098 r4118 90 90 91 91 [StorableConstructor] 92 pr ivate FeatureSelectionProblem(bool deserializing) : base() { }92 protected FeatureSelectionProblem(bool deserializing) : base(deserializing) { } 93 93 public FeatureSelectionProblem() 94 94 : base() { … … 106 106 107 107 InitializeOperators(); 108 AttachEventHandlers(); 108 RegisterParameterEvents(); 109 RegisterParameterValueEvents(); 109 110 } 110 111 111 112 [StorableHook(HookType.AfterDeserialization)] 112 113 private void AfterDeserializationHook() { 114 // BackwardsCompatibility3.3 115 #region Backwards compatible code (remove with 3.4) 116 if (operators == null) InitializeOperators(); 117 #endregion 113 118 RegisterParameterEvents(); 114 119 RegisterParameterValueEvents(); … … 118 123 FeatureSelectionProblem clone = (FeatureSelectionProblem)base.Clone(cloner); 119 124 clone.operators = operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 120 clone.AttachEventHandlers(); 125 clone.RegisterParameterEvents(); 126 clone.RegisterParameterValueEvents(); 121 127 return clone; 122 128 } … … 168 174 169 175 #region Helpers 170 private void AttachEventHandlers() {171 // Start BackwardsCompatibility3.3 (remove with 3.4)172 if (operators == null) InitializeOperators();173 // End BackwardsCompatibility3.3174 RegisterParameterEvents();175 RegisterParameterValueEvents();176 }177 178 176 private void InitializeOperators() { 179 177 operators = new List<IOperator>();
Note: See TracChangeset
for help on using the changeset viewer.