/// <summary> /// /// </summary> /// <param name="path"></param> private async void ImportCsvAndPopulateDataStructures(String path) { ProgressBar.Visibility = Visibility.Visible; ProgressBar.IsIndeterminate = true; String csvString = await DropboxHelper.ImportTextFile(path); if (csvString != "") { Datastore.Parse(csvString); } else { MessageBox.Show("Import failed. The csv file may not be valid. Please export the budget and/or register again."); } ProgressBar.Visibility = Visibility.Collapsed; ProgressBar.IsIndeterminate = false; NavigationService.GoBack(); }