Example #1
0
        /// <summary>
        /// Called when the current location has changed.
        /// </summary>
        protected void RaiseLocationChanged()
        {
            var locationChanged = LocationChanged;
            if (locationChanged != null)
            {
                var currentLocation = GetCurrentLocation();
                var value = new LocationChangedEventArgs(currentLocation);

                _dispatcherService.BeginInvoke(() => locationChanged(this, value));
            }
        }
Example #2
0
        /// <summary>
        /// Called when the current location has changed.
        /// </summary>
        protected void RaiseLocationChanged()
        {
            var locationChanged = LocationChanged;

            if (locationChanged != null)
            {
                var currentLocation = GetCurrentLocation();
                var value           = new LocationChangedEventArgs(currentLocation);

                _dispatcherService.BeginInvoke(() => locationChanged(this, value));
            }
        }