Пример #1
0
        private void Btn_Clicked1(object sender, EventArgs e)
        {
            FavoriteLocations fave = new FavoriteLocations();

            fave.latitude  = _latitude;
            fave.longitude = _longitude;
            App.LocationRepo.SaveFavoriteLocation(fave);
            DisplayAlert("", "Favorite Saved", "OK");
        }
Пример #2
0
        private void addFavoritesButton_Click(object sender, RoutedEventArgs e)
        {
            if (String.IsNullOrEmpty(Location) || String.IsNullOrWhiteSpace(Location))
            {
                return;
            }

            if (!FavoriteLocations.Contains(Location))
            {
                CollectionsSort.insertIntoSortedCollection(FavoriteLocations, Location);
            }
        }
Пример #3
0
 private void popupViewModel_LocationRemoved(object sender, PopupLocationItem e)
 {
     FavoriteLocations.Remove(e.Name);
 }
Пример #4
0
 public void SaveFavoriteLocation(FavoriteLocations location)
 {
     conn.Insert(location);
 }