AnyPlace.MainPage.DownloadRequireStaff C# (CSharp) Method

DownloadRequireStaff() private method

private DownloadRequireStaff ( ) : void
return void
        private async void DownloadRequireStaff()
        {
            try
            {
                //Dispatcher.BeginInvoke(() =>
                //{
                //    txt_download.Text = "Download building data..";
                //});

                var worldbuildings1 = await CustomPushpinWp8APIClient.GetWorldBuildings();

                //Dispatcher.BeginInvoke(() =>
                //{
                //    txt_download.Text = "Saving data..";
                //});

                writeWorldBuildingsToIsolatedStorage(worldbuildings1);

                IsolatedStorageDataRead();

                // add buildings to the map
                addBuildingsToMap(null);

                ReadWorldBuildingsFromIsolatedStorage();
                AddBuildingToSearch();
                
            }
            catch
            {

                MessageBox.Show("Failed to download maps. Check your internet connection and try again!");
            }

            isDownloading = false;
            loading.Visibility = Visibility.Collapsed;
            loading.IsIndeterminate = false;

            //deleteIsostorageFiles();
        }
MainPage