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"); }
private void addFavoritesButton_Click(object sender, RoutedEventArgs e) { if (String.IsNullOrEmpty(Location) || String.IsNullOrWhiteSpace(Location)) { return; } if (!FavoriteLocations.Contains(Location)) { CollectionsSort.insertIntoSortedCollection(FavoriteLocations, Location); } }
private void popupViewModel_LocationRemoved(object sender, PopupLocationItem e) { FavoriteLocations.Remove(e.Name); }
public void SaveFavoriteLocation(FavoriteLocations location) { conn.Insert(location); }