private void OnCancelTaskClicked(object sender, RoutedEventArgs e) { // Cancel current geoprocessing job if (_hotspotJob.Status == JobStatus.Started) _hotspotJob.Cancel(); // Hide the busyOverlay indication ShowBusyOverlay(false); }