Changeset 9306 for branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 03/11/13 16:47:11 (12 years ago)
- Location:
- branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TravelingSalesman/3.3/PathTSPTour.cs
r9286 r9306 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using System.Drawing; 25 24 using HeuristicLab.Common; … … 145 144 146 145 private void RegisterCoordinatesEvents() { 147 Coordinates.ItemsChanged += new EventHandler< EventArgs<IEnumerable<Position>>>(Coordinates_ItemChanged);146 Coordinates.ItemsChanged += new EventHandler<MatrixValuesChangedEventArgs>(Coordinates_ItemChanged); 148 147 Coordinates.Reset += new EventHandler(Coordinates_Reset); 149 148 } 150 149 private void DeregisterCoordinatesEvents() { 151 Coordinates.ItemsChanged -= new EventHandler< EventArgs<IEnumerable<Position>>>(Coordinates_ItemChanged);150 Coordinates.ItemsChanged -= new EventHandler<MatrixValuesChangedEventArgs>(Coordinates_ItemChanged); 152 151 Coordinates.Reset -= new EventHandler(Coordinates_Reset); 153 152 } … … 167 166 } 168 167 169 private void Coordinates_ItemChanged(object sender, EventArgs<IEnumerable<Position>>e) {168 private void Coordinates_ItemChanged(object sender, MatrixValuesChangedEventArgs e) { 170 169 OnCoordinatesChanged(); 171 170 } -
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r9286 r9306 158 158 private void CoordinatesParameter_ValueChanged(object sender, EventArgs e) { 159 159 if (Coordinates != null) { 160 Coordinates.ItemsChanged += new EventHandler< EventArgs<IEnumerable<Position>>>(Coordinates_ItemChanged);160 Coordinates.ItemsChanged += new EventHandler<MatrixValuesChangedEventArgs>(Coordinates_ItemChanged); 161 161 Coordinates.Reset += new EventHandler(Coordinates_Reset); 162 162 } … … 166 166 } 167 167 } 168 private void Coordinates_ItemChanged(object sender, EventArgs<IEnumerable<Position>>e) {168 private void Coordinates_ItemChanged(object sender, MatrixValuesChangedEventArgs e) { 169 169 if (Evaluator is ITSPCoordinatesPathEvaluator) { 170 170 ClearDistanceMatrix(); … … 223 223 CoordinatesParameter.ValueChanged += new EventHandler(CoordinatesParameter_ValueChanged); 224 224 if (Coordinates != null) { 225 Coordinates.ItemsChanged += new EventHandler< EventArgs<IEnumerable<Position>>>(Coordinates_ItemChanged);225 Coordinates.ItemsChanged += new EventHandler<MatrixValuesChangedEventArgs>(Coordinates_ItemChanged); 226 226 Coordinates.Reset += new EventHandler(Coordinates_Reset); 227 227 }
Note: See TracChangeset
for help on using the changeset viewer.