コード例 #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();
        }
コード例 #2
0
 public WaypointListEditor(WaypointList wptList)
 {
     this.wptList = wptList;
     tracker      = new TrackerItem();
 }