Beispiel #1
0
        private string GetMeasureString(BicicletaEstacionTable ll)
        {
            var currentLocation = PositionService.GetCurrentLocation();

            return(StringExtensions.GetMeasureString(ll.Latitud, ll.Longitud,
                                                     currentLocation.Location.Latitude, currentLocation.Location.Longitude));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void AddEstacion(BicicletaEstacionTable estacion)
 {
     Estaciones.Add(estacion);
 }