示例#1
0
        private async Task LoadConstructorStanding()
        {
            var constructorStandings = await _standingService.GetSeasonConstructorStandingsCollectionAsync();

            var constructors = constructorStandings.StandingsLists.First().ConstructorStandings;

            _constructorStanding = new ObservableCollection <ConstructorStanding>();
            foreach (var constructor in constructors)
            {
                _constructorStanding.Add(constructor);
            }
        }
示例#2
0
        private async Task LoadStandingsData()
        {
            var driverStandings = await _standingService.GetSeasonDriverStandingsCollectionAsync();

            var drivers = driverStandings.StandingsLists.First().DriverStandings;

            foreach (var driver in drivers)
            {
                DriverStanding.Add(driver);
            }

            var constructorStandings = await _standingService.GetSeasonConstructorStandingsCollectionAsync();

            var constructors = constructorStandings.StandingsLists.First().ConstructorStandings;

            foreach (var constructor in constructors)
            {
                ConstructorStanding.Add(constructor);
            }
        }