private async Task PerformDataFetch(bool loadState) { if (loadState) { var profile = NetworkInformation.GetInternetConnectionProfile(); // var connectivity = profile.GetNetworkConnectivityLevel(); //DisplayName = await UserInformation.GetDisplayNameAsync(); DisplayName = "test"; var onlineDataService = new MobileFlightDataService(new MobileServiceClient( "https://worldpilotslogbook.azure-mobile.net/", "LRlXCJsDuLcggcInPASNkoyofIwtuk47")); FlightDataManager = new FlightDataManager <MobileFlightDataService, LocalDataService, FlightsSyncManager <MobileFlightDataService> >(onlineDataService, new LocalDataService(new LocalStorage(), "flights.xml", "lookups.xml", "user.xml" ), new InternetTools(), new FlightsSyncManager <MobileFlightDataService>() ); await FlightDataManager.Startup(DisplayName); } // Tear down the extended splash screen after all operations are complete. RemoveExtendedSplash(); }
public static async Task GetAllFlightData() { await FlightDataManager.LoadData(); }
public static async Task RefreshFlightData() { await FlightDataManager.GetFlights(); }