src/GenFx.Wpf/Controls/PopulationViewer.xaml.cs
/// <summary>
/// Handles the event when the <see cref="Population"/> property changes.
/// </summary>
/// <param name="obj">The <see cref="DependencyObject"/> that owns the property.</param>
/// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> associated with the event.</param>
Handles the event when the  property changes.
Handles the event when the property changes .
private static void OnSelectedPopulationChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            PopulationViewer viewer = (PopulationViewer)obj;
            if (e.OldValue == null)
            {
                viewer.SelectedPopulationEntities = null;
                return;
            }
            viewer.RefreshEntities((Population)e.NewValue, viewer.ExecutionState);
        }
private static void OnSelectedPopulationChanged ( DependencyObject obj , DependencyPropertyChangedEventArgs e ) { PopulationViewer viewer = ( PopulationViewer ) obj ; if ( e . OldValue == null ) { viewer . SelectedPopulationEntities = null ; return ; } viewer . RefreshEntities ( ( Population ) e . NewValue , viewer . ExecutionState ) ; }
Handles the event when the  property changes.
Handles the event when the property changes .
obj
DependencyObject
The  that owns the property.
The that owns the property .
e
DependencyPropertyChangedEventArgs
The  associated with the event.
The associated with the event .