Ejemplo n.º 1
0
        /// <summary>
        /// A custom eventhandler
        /// It shows information about a bikestation</summary>
        /// when the pin is tapped on the map
        /// <param name="tappedPin"></param>
        public async void OnPinClicked(Pin tappedPin)
        {
            var availablespots = serverClient.GetAvailability(tappedPin.Label.Substring(4, tappedPin.Label.Length - 4));

            await Application.Current.MainPage.DisplayAlert("Location: " + tappedPin.Address, "Spaces: " + availablespots.Total + "\n" + "Occupied: " + availablespots.Occupied, "OK");
        }