src/GenFx.Wpf/Controls/ExecutionPanel.xaml.cs
/// <summary>
/// Handles the event when the system queries whether <see cref="StopExecutionCommand"/> can be 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 system queries whether  can be executed.
Handles the event when the system queries whether can be executed .
private static void CanStopExecution(object sender, CanExecuteRoutedEventArgs e)
        {
            ExecutionPanel panel = (ExecutionPanel)sender;
            if (panel.ViewModel == null)
            {
                e.CanExecute = false;
            }
            else
            {
                e.CanExecute = panel.ViewModel.CanStopExecution();
            }
        }
private static void CanStopExecution ( object sender , CanExecuteRoutedEventArgs e ) { ExecutionPanel panel = ( ExecutionPanel ) sender ; if ( panel . ViewModel == null ) { e . CanExecute = false ; } else { e . CanExecute = panel . ViewModel . CanStopExecution ( ) ; } }
Handles the event when the system queries whether  can be executed.
Handles the event when the system queries whether can be executed .
sender
object
Sender of the event.
Sender of the event .
e
CanExecuteRoutedEventArgs
The  associated with the event.
The associated with the event .