예제 #1
0
        /// <summary>
        /// Loads the data async from the database
        /// </summary>
        /// <returns>The data async.</returns>
        async Task LoadDataAsync()
        {
            if (string.IsNullOrEmpty(Search))
            {
                Suburbs = await _repo.Get();
            }
            else
            {
                var result = await _repo.Get();

                Suburbs = result.Where(x => x.Name.ToLower().Contains(Search.ToLower())).ToList();
            }
        }
예제 #2
0
        /// <summary>
        /// Loads the data async from the database
        /// </summary>
        /// <returns>The data async.</returns>
        async Task LoadDataAsync()
        {
            Suburbs = await _repo.Get();

            _log.Debug("Map Got data {0} records", _suburbs.Count);
            RaisePropertyChanged(() => Suburbs);
            MessagingCenter.Send <ShowPinsMessage>(new ShowPinsMessage(), AppMessage.ShowPins.ToString());
        }