Exemplo n.º 1
0
 static void OutputTracks(trkType[] pTracks)
 {
     Console.WriteLine("{0} Tracks", pTracks.Length);
       		Assert.AreEqual(1, pTracks.Length, "Wrong number of tracks");
     foreach (trkType lTrack in pTracks)
     {
         OutputTrack(lTrack);
     }
 }
Exemplo n.º 2
0
 static void OutputTrack(trkType pTrack)
 {
     Console.WriteLine("Track ’{0}’", pTrack.name);
       		if (pTrack.trkseg.Length > 0)
       		{
         Console.WriteLine("{0} segments", pTrack.trkseg.Length);
         foreach (trksegType lSegment in pTrack.trkseg)
         {
               Console.WriteLine("{0} Points", lSegment.trkpt.Length);
               foreach (wptType lWayPoint in lSegment.trkpt)
               {
                		OutputWayPoint(lWayPoint);
               }
         }
      		}
 }