示例#1
0
 AnimationElement GetAnimationElement(Racer racer)
 {
     return(GetAnimationElement(racers.IndexOf(racer)));
 }
示例#2
0
        void OnCanDecelerate(object sender, CanExecuteRoutedEventArgs e)
        {
            Racer racer = GetRacer(e.Parameter);

            e.CanExecute = racer != null && racer.Speed > 0 && racer.Name != "Michael Schumacher";
        }