private void cancelButton_Click(object sender, RoutedEventArgs e) { curTest.Cancel(); this.Close(); }
static void Exit(object sender, EventArgs args) { _tst?.Cancel(); _t.Wait(); Console.WriteLine("closing..."); }