// TrailSites /// <summary> /// Returns a sorted list of TrailSite instances which have any source of water; including tank water, tap water, sorted from east to west. The list is a copy, mofifications to the list have no affect on the original. /// </summary> /// <returns>List of TrailSite: List of matching TrailSite instances, or null if none found.</returns> public List <TrailSite> GetTrailSitesWithWaterSource() { List <TrailSite> ts = _model.GetTrailSites(AppDelegates.PlaceHasWaterSource()); if (ts is null) { return(null); } ts.Sort(); return(ts); }
/// <summary> /// Returns a sorted list of instances implementing Place which have any source of water; including Tank water, Tap water, sorted from east to west. The list is a copy, mofifications to the list have no affect on the original. /// </summary> /// <returns>List of Place: List of matching Place instances, or null if none found.</returns> public List <Place> GetPlacesWithWaterSource() { List <Place> places = _model.GetPlaces(AppDelegates.PlaceHasWaterSource()); if (places == null) { return(null); } places.Sort(); return(places); }
// CampSite... /// <summary> /// Returns a sorted list of CampSite instances which have any source of water; including tank water, tap water, sorted from east to west. The list is a copy, mofifications to the list have no affect on the original. /// </summary> /// <returns>List of CampSite :List of matching CampSite instances, or null if none found.</returns> public List <CampSite> GetCampSitesWithWaterSource() { List <CampSite> campSites = _model.GetCampSites(AppDelegates.PlaceHasWaterSource()); if (campSites is null) { return(null); } campSites.Sort(); return(campSites); }