Example #1
0
 public void Insert(PathPoint p, int position)
 {
     if (position > _lastposition) _lastposition = position;
     p.Rank = _lastposition++;
     _points.Add(p);
     _points = _points.OrderBy(point => point.Rank).ToList();
 }
Example #2
0
 /// <summary>
 /// Adds a PathPoint to the back of the List
 /// </summary>
 /// <param name="p"></param>
 public void AddPoint(PathPoint p)
 {
     p.Rank = _lastposition++;
     _points.Add(p);
     _points = _points.OrderBy(point => point.Rank).ToList();
 }
Example #3
0
 /// <summary>
 /// Adds a PathPoint to the back of the List
 /// </summary>
 /// <param name="p"></param>
 public void AddPoint(PathPoint p)
 {
     p.Rank = _lastposition++;
     _points.Add(p);
     _points = _points.OrderBy(point => point.Rank).ToList();
 }