Exemplo n.º 1
0
 public AcLeaderboard(int capacity)
 {
     Leaderboard = new BetterObservableCollection <AcDriverLeaderboardDetails>(
         Enumerable.Range(0, capacity).Select(x => new AcDriverLeaderboardDetails()));
     OnPropertyChanged(nameof(Leaderboard));
     _positionHelperList  = Leaderboard.ToList();
     _lapProgressComparer = new LapProgressComparer(false);
 }
Exemplo n.º 2
0
 public AcLeaderboard(int capacity, [CanBeNull] IAcLeaderboardCommandHelper commandHelper)
 {
     Leaderboard = new BetterObservableCollection <AcDriverLeaderboardDetails>(
         Enumerable.Range(0, capacity).Select((x, i) => new AcDriverLeaderboardDetails(i, commandHelper)));
     ConnectedOnly        = new ConnectedDriversCollection(Leaderboard);
     _positionHelperList  = Leaderboard.ToList();
     _lapProgressComparer = new LapProgressComparer(false);
 }