public void LoadWorldAirports() { if (this.WorldAirports != null && this.WorldAirports.Count > 0) { OnLoadDataCompleted(WorldAirportsKey); return; } IsLoadingData = true; LoadingTimer.StartTask("LoadWorldAirports"); var airportMajorCodesProvider = new AirlinesDataProvider(); airportMajorCodesProvider.LoadDataCompleted += OnLoadWorldAirportsCodesCompleted; airportMajorCodesProvider.LoadWorldsAirportsAsync(); }
public void LoadUnitedStatesAirlineTraffic() { if (this.UnitedStatesAirlineTraffic != null && this.UnitedStatesAirlineTraffic.FlightsDataSource != null && this.UnitedStatesAirlineTraffic.FlightsDataSource.Count > 0) { OnLoadDataCompleted(UnitedStatesAirlineTrafficKey); return; } IsLoadingData = true; LoadingTimer.StartTask("LoadUnitedStatesAirlineTraffic"); var dataProvider = new AirlinesDataProvider(); dataProvider.LoadDataCompleted += OnLoadUnitedStatesAirlineTrafficCompleted; dataProvider.LoadAmericanFlightsAsync(); }