private async void action1_Click(object sender, RoutedEventArgs e) { label1.Content = "Action 1 starting..."; await Action1.Execute(); label1.Content = "Action 1 completed"; }
private void action1_Click(object sender, RoutedEventArgs e) { Action1.Execute(); }