public GpxWaypoint(GpxWaypoint p) : base(NODENAME) { Lat = p.Lat; Lon = p.Lon; Elevation = p.Elevation; Time = p.Time; Name = p.Name; Comment = p.Comment; Description = p.Description; Symbol = p.Symbol; }
/// <summary> /// fügt einen <see cref="Waypoint"/> ein oder an /// </summary> /// <param name="wp"></param> /// <param name="pos">negative Werte führen zum Anhängen an die Liste</param> public void InsertWaypoint(GpxWaypoint wp, int pos = -1) { if (pos < 0 || Waypoints.Count <= pos) { Waypoints.Add(wp); } else { Waypoints.Insert(pos, wp); } }