private string GetMeasureString(BicicletaEstacionTable ll) { var currentLocation = PositionService.GetCurrentLocation(); return(StringExtensions.GetMeasureString(ll.Latitud, ll.Longitud, currentLocation.Location.Latitude, currentLocation.Location.Longitude)); }
protected override void OnNavigatedTo(NavigationEventArgs e) { //Al navegar a la página, busco el lugar en base al id pasado y luego lo muestro. var id = Guid.Parse(Uri.EscapeUriString(NavigationContext.QueryString["id"])); var query = from miLugar in BicicletaEstacionDC.Current.Estaciones where miLugar.Id == id select miLugar; _bicicletaEstacion = query.FirstOrDefault(); UpdateLugar(); base.OnNavigatedTo(e); }
public void AddEstacion(BicicletaEstacionTable estacion) { Estaciones.Add(estacion); }