コード例 #1
0
ファイル: BrisRace.cs プロジェクト: jpazarzis/hogar
 private bool IsHorseScratched(BrisHorse brisHorse, Race myrace)
 {
     Horse myHorse = myrace.GetHorseByProgramNumber(brisHorse.ProgramNumber);
     return null != myHorse ? myHorse.Scratched : true;
 }
コード例 #2
0
ファイル: BrisRace.cs プロジェクト: jpazarzis/hogar
        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 "";
        }