Пример #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();
 }
Пример #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();
 }
Пример #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();
 }