private async void AddCurrentLocation_Click()

in TrafficApp/MainPage.xaml.cs [340:353]


        private async void AddCurrentLocation_Click(object sender, RoutedEventArgs e)
        {
            (sender as Button).IsEnabled = false;
            var currentLocation = await this.GetCurrentLocationAsync();
            if (currentLocation != null)
            {
                // Resolve the address given the geocoordinates.
                await LocationHelper.TryUpdateMissingLocationInfoAsync(currentLocation, currentLocation);

                this.EditNewLocation(currentLocation);
            }

            (sender as Button).IsEnabled = true;
        }