Beispiel #1
0
        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();
        }
Beispiel #2
0
 public static async Task GetAllFlightData()
 {
     await FlightDataManager.LoadData();
 }
Beispiel #3
0
 public static async Task RefreshFlightData()
 {
     await FlightDataManager.GetFlights();
 }