Ejemplo n.º 1
0
 private void AddToTrainerTrackStats(JockeyStarter js)
 {
     string key = TrainerTrackStats.MakeKey(js);
     if (false == _trainerTrackStats.ContainsKey(key))
     {
         _trainerTrackStats.Add(key, new TrainerTrackStats());
     }
     _trainerTrackStats[key].IncreaseStarters();
     if (js.FinalCall == 1)
     {
         _trainerTrackStats[key].IncreaseWinners();
         _trainerTrackStats[key].IncreaseBankroll(js.WinPayoff);
     }
 }
Ejemplo n.º 2
0
 public JockeyStarter(JockeyStarter other, string trainer, string trackCode)
 {
     _raceID = other._raceID;
     _trackCode = trackCode;
     _date = other._date;
     _horseName = other._horseName;
     _trainer = trainer;
     _owner = other._owner;
     _wasTheFavorite = other._wasTheFavorite;
     _odds = other._odds;
     _winPayoff = other._winPayoff;
     _surface = other._surface;
     _distanceInYards = other._distanceInYards;
     _postPosition = other._postPosition;
     _trackCondition = other._trackCondition;
     _firstCall = other._firstCall;
     _secondCall = other._secondCall;
     _finalCall = other._finalCall;
 }