static bool SameLeg(RouteLeg leg, RouteStop start, RouteStop end, RouteLegStatus?status) { if (leg == null) { return(false); } return(leg.StartPoint == start && leg.EndPoint == end && (status == null || leg.Status == status)); }
public void RequestLegDuration(RouteLeg leg) { if (leg == null || leg.Status == RouteLegStatus.Complete || RequestedDurations.Contains(leg)) { return; } RequestedDurations.Enqueue(leg); leg.DurationRequested = true; }