Beispiel #1
0
 private bool IsHorseScratched(BrisHorse brisHorse, Race myrace)
 {
     Horse myHorse = myrace.GetHorseByProgramNumber(brisHorse.ProgramNumber);
     return null != myHorse ? myHorse.Scratched : true;
 }
Beispiel #2
0
        public string GetHighestPowerRatingHorseNumber(Race myrace)
        {
            _horse.Sort(ComparePrimeRatings);

            foreach (BrisHorse h in _horse)
            {
                Horse myhorse = myrace.GetHorseByProgramNumber(h.ProgramNumber);

                if (null != myhorse && !myhorse.Scratched)
                {
                    return h.ProgramNumber;
                }
            }

            return "";
        }