Changeset 11314 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
- Timestamp:
- 08/27/14 13:28:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
r11311 r11314 130 130 graphics.FillRectangle(Brushes.Red, points[i].X - size / 2, points[i].Y - size / 2, size, size); 131 131 } 132 133 132 int startingPoint = Content.StartingPoint.Value; 134 133 int terminusPoint = Content.TerminusPoint.Value; 135 134 Font font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular); 136 graphics.DrawString("Begin", font, Brushes.Black, points[startingPoint].X, points[startingPoint].Y); 135 var beginSize = graphics.MeasureString("Begin", font); 136 graphics.DrawString("Begin", font, Brushes.Black, points[startingPoint].X - beginSize.Width, points[startingPoint].Y - beginSize.Height); 137 137 graphics.DrawString("End", font, Brushes.Black, points[terminusPoint].X, points[terminusPoint].Y); 138 138 }
Note: See TracChangeset
for help on using the changeset viewer.