private void StartButton_Click(object sender, RoutedEventArgs e) { StartButton.Content = "Running..."; StropBench sb = new StropBench(); benchRes = sb.bench(); MainText.Text = benchRes; StartButton.Content = "Done!"; }