src/GenFx.Wpf/Controls/PopulationViewer.xaml.cs
/// <summary>
/// Refreshes the state of <see cref="SelectedPopulationEntities"/> based on the value of <see cref="ExecutionState"/>.
/// </summary>
/// <param name="currentPopulation">The current <see cref="GenFx.Population"/>.</param>
/// <param name="currentState">The current <see cref="ExecutionState"/>.</param>
Refreshes the state of  based on the value of .
Refreshes the state of based on the value of .
private void RefreshEntities(Population currentPopulation, ExecutionState currentState)
        {
            if (currentState == ExecutionState.Idle || currentState == ExecutionState.Paused)
            {
                if (currentPopulation == null)
                {
                    this.SelectedPopulationEntities = null;
                }
                else
                {
                    this.SelectedPopulationEntities = currentPopulation.Entities.ToList();
                }
            }
        }
private void RefreshEntities ( Population currentPopulation , ExecutionState currentState ) { if ( currentState == ExecutionState . Idle || currentState == ExecutionState . Paused ) { if ( currentPopulation == null ) { this . SelectedPopulationEntities = null ; } else { this . SelectedPopulationEntities = currentPopulation . Entities . ToList ( ) ; } } }
Refreshes the state of  based on the value of .
Refreshes the state of based on the value of .
currentPopulation
Population
The current .
The current .
currentState
ExecutionState
The current .
The current .