示例#1
0
 private async void ExecuteSequenceCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     e.Command.SetIsRunning(true);
     await Task.Run(() => Cube.ExecuteSequence(e.Parameter.ToString()));
 }
示例#2
0
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     Cube.StopProcessing();
 }
示例#3
0
 private async void SolveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     e.Command.SetIsRunning(true);
     await Task.Run(() => Cube.Solve());
 }