src/GenFx.Wpf/Controls/FitnessChart.xaml.cs
/// <summary>
/// Handles the event when the algorithm has evaluated the fitness of a population.
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">The<see cref="EnvironmentFitnessEvaluatedEventArgs"/> associated with the event.</param>
Handles the event when the algorithm has evaluated the fitness of a population.
Handles the event when the algorithm has evaluated the fitness of a population .
private void Algorithm_FitnessEvaluated(object? sender, EnvironmentFitnessEvaluatedEventArgs e)
        {
            this.Dispatcher.Invoke(() =>
            {
                bool forceRefresh = false;
                if (this.TryInitializeStopwatch())
                {
                    forceRefresh = true;
                }
                this.RefreshChart(forceRefresh);
            });
        }
private void Algorithm_FitnessEvaluated ( object ? sender , EnvironmentFitnessEvaluatedEventArgs e ) { this . Dispatcher . Invoke ( ( ) => { bool forceRefresh = false ; if ( this . TryInitializeStopwatch ( ) ) { forceRefresh = true ; } this . RefreshChart ( forceRefresh ) ; } ) ; }
Handles the event when the algorithm has evaluated the fitness of a population.
Handles the event when the algorithm has evaluated the fitness of a population .
sender
object?
Sender of the event.
Sender of the event .
e
EnvironmentFitnessEvaluatedEventArgs
The associated with the event.
The associated with the event .