Changeset 4118 for trunk/sources/HeuristicLab.Problems.Knapsack
- Timestamp:
- 07/27/10 19:54:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
r4098 r4118 138 138 139 139 [StorableConstructor] 140 private KnapsackProblem(bool deserializing) : base( ) { }140 private KnapsackProblem(bool deserializing) : base(deserializing) { } 141 141 public KnapsackProblem() 142 142 : base() { … … 255 255 #region Helpers 256 256 [StorableHook(HookType.AfterDeserialization)] 257 private void AfterDeserializationHook() { 258 // BackwardsCompatibility3.3 259 #region Backwards compatible code (remove with 3.4) 260 if (operators == null) InitializeOperators(); 261 #endregion 262 AttachEventHandlers(); 263 } 264 257 265 private void AttachEventHandlers() { 258 // Start BackwardsCompatibility3.3 (remove with 3.4)259 if (operators == null) InitializeOperators();260 // End BackwardsCompatibility3.3261 266 SolutionCreatorParameter.ValueChanged += new EventHandler(SolutionCreatorParameter_ValueChanged); 262 267 SolutionCreator.BinaryVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_BinaryVectorParameter_ActualNameChanged);
Note: See TracChangeset
for help on using the changeset viewer.