protected void AddToAthleteRidesLBoards(int athleteId, int rideID, LeaderBoard segmentLBoard) { Dictionary<int, LeaderBoard> athleteLBoards; if (!AthletesRidesLBoards.ContainsKey(athleteId)) { athleteLBoards = new Dictionary<int, LeaderBoard>(); AthletesRidesLBoards.Add(athleteId, athleteLBoards); } else { athleteLBoards = AthletesRidesLBoards[athleteId]; } athleteLBoards.Add(rideID, segmentLBoard); }
public double SpeedInKmH(LeaderBoard lboard) { return (Distance / lboard.ElapsedTimes.Min) * 3.6; }
protected void SetYersey(Result dbResult) { YellowYersey = (dbResult != null) ? dbResult.YellowYerseyLB : null; GreenYersey = (dbResult != null) ? dbResult.GreenYerseyLB : null; PolkaDotYersey = (dbResult != null) ? dbResult.PolkaDotYerseyLB : null; }