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

            label1.Content = "Action 1 completed";
        }
示例#2
0
 private void action1_Click(object sender, RoutedEventArgs e)
 {
     Action1.Execute();
 }