Changeset 15219 for stable/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPProblemInstance.cs
- Timestamp:
- 07/12/17 21:07:36 (7 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15072,15083,15168
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting merged: 15168
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPProblemInstance.cs
r14186 r15219 110 110 111 111 private void AttachEventHandlers() { 112 CapacityParameter.ValueChanged += new EventHandler(CapacityParameter_ValueChanged); 113 OverloadPenaltyParameter.ValueChanged += new EventHandler(OverloadPenaltyParameter_ValueChanged); 114 OverloadPenaltyParameter.Value.ValueChanged += new EventHandler(OverloadPenalty_ValueChanged); 112 CapacityParameter.ValueChanged += CapacityParameter_ValueChanged; 113 Capacity.Reset += Capacity_Changed; 114 Capacity.ItemChanged += Capacity_Changed; 115 OverloadPenaltyParameter.ValueChanged += OverloadPenaltyParameter_ValueChanged; 116 OverloadPenalty.ValueChanged += OverloadPenalty_ValueChanged; 115 117 } 116 118 … … 123 125 #region Event handlers 124 126 void CapacityParameter_ValueChanged(object sender, EventArgs e) { 127 Capacity.Reset += Capacity_Changed; 128 Capacity.ItemChanged += Capacity_Changed; 129 EvalBestKnownSolution(); 130 } 131 private void Capacity_Changed(object sender, EventArgs e) { 125 132 EvalBestKnownSolution(); 126 133 } 127 134 void OverloadPenaltyParameter_ValueChanged(object sender, EventArgs e) { 128 OverloadPenalty Parameter.Value.ValueChanged += new EventHandler(OverloadPenalty_ValueChanged);135 OverloadPenalty.ValueChanged += OverloadPenalty_ValueChanged; 129 136 EvalBestKnownSolution(); 130 137 }
Note: See TracChangeset
for help on using the changeset viewer.