Ejemplo n.º 1
0
        public void Undo()
        {
            //remove neighbors first
            foreach (var j in tracker.AddedNeighbor)
            {
                wptList.RemoveNeighbor(j);
            }

            // Remove all wpts.
            foreach (var k in tracker.AddedWaypoint)
            {
                wptList.RemoveAt(k);
            }

            // Clear the tracker
            tracker = new TrackerItem();
        }
Ejemplo n.º 2
0
 public WaypointListEditor(WaypointList wptList)
 {
     this.wptList = wptList;
     tracker      = new TrackerItem();
 }