private bool IsHorseScratched(BrisHorse brisHorse, Race myrace) { Horse myHorse = myrace.GetHorseByProgramNumber(brisHorse.ProgramNumber); return null != myHorse ? myHorse.Scratched : true; }
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 ""; }