private void DoUseLocation() { IsBusy = true; _geolocationService.GetLocation(location => { IsBusy = false; if (location == null) { Message = "Unable to detect current location. Please ensure location is turned on in your phone settings and try again."; } else { _searchItem = new GeoLocationSearchItem(location); SearchText = _searchItem.DisplayText; SearchForProperties(); } }); }
private void DoRecentSearchSelected(RecentSearch recentSearch) { _searchItem = recentSearch.Search; SearchText =recentSearch.Search.DisplayText; SearchForProperties(); }
public RecentSearch(SearchItemBase searchItem, int resultsCount) { Search = searchItem; ResultsCount = resultsCount; }
private void DoLocationSelected(Location location) { SearchText = location.DisplayName; SuggestedLocations.Clear(); _searchItem = new PlainTextSearchItem(location.Name, location.DisplayName); SearchForProperties(); }
private void InitSearchBase(SearchItemBase searchItem) { _searchItem = searchItem; Location = searchItem.DisplayText; DoLoadMore(); }