Пример #1
0
 private void cancelButton_Click(object sender, RoutedEventArgs e)
 {
     curTest.Cancel();
     this.Close();
 }
Пример #2
0
 static void Exit(object sender, EventArgs args)
 {
     _tst?.Cancel();
     _t.Wait();
     Console.WriteLine("closing...");
 }