public virtual void RemoveWaypoint(int index) { var evArg = new CoordinateEventArgs(waypoints [index]); waypoints.RemoveAt(index); OnWaypointEventCalled(WaypointRemoved, evArg); }
void OnPathpointAddedEventCalled(CoordinateEventHandler handler, CoordinateEventArgs args) { if (PathPointFollowerMode == true) { JumpTo(args.Coordinate); } }
void OnWaypointEventCalled(CoordinateEventHandler handler, CoordinateEventArgs args) { if (handler != null) { handler(this, args); } }