src/GenFx.Wpf/Controls/ExecutionPanel.xaml.cs
/// <summary>
/// Handles the event when the <see cref="StopExecutionCommand"/> is executed.
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">The <see cref="CanExecuteRoutedEventArgs"/> associated with the event.</param>
Handles the event when the  is executed.
Handles the event when the is executed .
private static void OnStopExecution(object sender, ExecutedRoutedEventArgs e)
        {
            var viewModel = ((ExecutionPanel)sender).ViewModel;
            if (viewModel != null)
            {
                Task.Run(viewModel.StopExecution);
            }
        }
private static void OnStopExecution ( object sender , ExecutedRoutedEventArgs e ) { var viewModel = ( ( ExecutionPanel ) sender ) . ViewModel ; if ( viewModel != null ) { Task . Run ( viewModel . StopExecution ) ; } }
Handles the event when the  is executed.
Handles the event when the is executed .
sender
object
Sender of the event.
Sender of the event .
e
ExecutedRoutedEventArgs
The  associated with the event.
The associated with the event .