예제 #1
0
 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);
 }
예제 #2
0
 public double SpeedInKmH(LeaderBoard lboard)
 {
     return (Distance / lboard.ElapsedTimes.Min) * 3.6;
 }
예제 #3
0
 protected void SetYersey(Result dbResult)
 {
     YellowYersey = (dbResult != null) ? dbResult.YellowYerseyLB : null;
     GreenYersey = (dbResult != null) ? dbResult.GreenYerseyLB : null;
     PolkaDotYersey = (dbResult != null) ? dbResult.PolkaDotYerseyLB : null;
 }