private void cancelBtn_Click(object sender, RoutedEventArgs e) { if (killWorker != null) { killWorker(this, e); } }