Exemplo n.º 1
0
 /// <summary>
 /// fügt einen <see cref="GpxTrack"/> ein oder an
 /// </summary>
 /// <param name="t"></param>
 /// <param name="pos">negative Werte führen zum Anhängen an die Liste</param>
 public void InsertTrack(GpxTrack t, int pos = -1)
 {
     if (pos < 0 || Tracks.Count <= pos)
     {
         Tracks.Add(t);
     }
     else
     {
         Tracks.Insert(pos, t);
     }
 }
Exemplo n.º 2
0
 public GpxTrack(GpxTrack t) : base()
 {
     Name        = t.Name;
     Comment     = t.Comment;
     Description = t.Description;
     Source      = t.Source;
     for (int s = 0; s < t.Segments.Count; s++)
     {
         Segments.Add(new GpxTrackSegment(t.Segments[s]));
     }
 }