AnimationElement GetAnimationElement(Racer racer) { return(GetAnimationElement(racers.IndexOf(racer))); }
void OnCanDecelerate(object sender, CanExecuteRoutedEventArgs e) { Racer racer = GetRacer(e.Parameter); e.CanExecute = racer != null && racer.Speed > 0 && racer.Name != "Michael Schumacher"; }