src/GenFx.Wpf/ViewModels/ExecutionPanelViewModel.cs
/// <summary>
/// Executes one generation of the associated <see cref="GeneticAlgorithm"/>.
/// </summary>
/// <returns>The <see cref="Task"/> associated with the execution.</returns>
Executes one generation of the associated .
Executes one generation of the associated .
public Task StepExecutionAsync()
        {
            return this.ExecuteAlgorithmCoreAsync(async () =>
            {
                bool isComplete = true;
                try
                {
                    isComplete = await this.context.GeneticAlgorithm.StepAsync();
                }
                finally
                {
                    if (isComplete)
                    {
                        this.context.ExecutionState = ExecutionState.Idle;
                    }
                    else
                    {
                        this.context.ExecutionState = ExecutionState.Paused;
                    }
                }
            });
        }
public Task StepExecutionAsync ( ) { return this . ExecuteAlgorithmCoreAsync ( async ( ) => { bool isComplete = true ; try { isComplete = await this . context . GeneticAlgorithm . StepAsync ( ) ; } finally { if ( isComplete ) { this . context . ExecutionState = ExecutionState . Idle ; } else { this . context . ExecutionState = ExecutionState . Paused ; } } } ) ; }
Executes one generation of the associated .
Executes one generation of the associated .
The  associated with the execution.
The associated with the execution .