public bool Matches(PatrolRoute route) { return(route.Route.Count().Equals(Route.Count()) && route.Origin.Equals(Origin)); }
public PatrolRouteProposal(FacilityMap map, PatrolRoute route, Action <IEnumerable <Path> > onChange) : this(new CachedPathFinder(map), route.Route.Last().Destination, new ObservableList <Path>(route.Route.ToList(), onChange)) { }