コード例 #1
0
 private void DoLocationSelected(Location location)
 {
     SearchText = location.DisplayName;
     SuggestedLocations.Clear();
     _searchItem = new PlainTextSearchItem(location.Name, location.DisplayName);
     SearchForProperties();
 }
コード例 #2
0
        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();
                }
            });
        }
コード例 #3
0
 public RecentSearch(SearchItemBase searchItem, int resultsCount)
 {
     Search       = searchItem;
     ResultsCount = resultsCount;
 }
コード例 #4
0
 public RecentSearch(SearchItemBase searchItem, int resultsCount)
 {
     Search = searchItem;
       ResultsCount = resultsCount;
 }
コード例 #5
0
 private void InitSearchBase(SearchItemBase searchItem)
 {
     _searchItem = searchItem;
     Location    = searchItem.DisplayText;
     DoLoadMore();
 }
コード例 #6
0
 private void DoRecentSearchSelected(RecentSearch recentSearch)
 {
     _searchItem = recentSearch.Search;
     SearchText  = recentSearch.Search.DisplayText;
     SearchForProperties();
 }