Changeset 4174 for trunk/sources/HeuristicLab.Problems.VehicleRouting.Views
- Timestamp:
- 08/06/10 16:08:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VRPSolutionView.cs
r4154 r4174 138 138 foreach (Tour tour in Content.Solution.Tours) { 139 139 double t = 0.0; 140 Point[] tourPoints = new Point[tour.C ount + 2];140 Point[] tourPoints = new Point[tour.Cities.Count + 2]; 141 141 int lastCustomer = 0; 142 142 143 for (int i = -1; i <= tour.C ount; i++) {143 for (int i = -1; i <= tour.Cities.Count; i++) { 144 144 int location = 0; 145 145 146 if (i == -1 || i == tour.C ount)146 if (i == -1 || i == tour.Cities.Count) 147 147 location = 0; //depot 148 148 else 149 location = tour [i].Value;149 location = tour.Cities[i]; 150 150 151 151 Point locationPoint = new Point(border + ((int)((coordinates[location, 0] - xMin) * xStep)), … … 153 153 tourPoints[i + 1] = locationPoint; 154 154 155 if (i != -1 && i != tour.C ount) {155 if (i != -1 && i != tour.Cities.Count) { 156 156 Brush customerBrush = Brushes.Black; 157 157
Note: See TracChangeset
for help on using the changeset viewer.