public static void Save() { if (AlbumInfoList?.Count == 0) { return; } JsonFileHelper.SaveAsync(JsonFilename, AlbumInfoList); JsonFileHelper.SaveAsync(Helper.TempFolder, JsonFilename + Helper.TimeStamp, AlbumInfoList); }
private async void ExportData_Click(object sender, RoutedEventArgs e) { FolderPicker picker = new FolderPicker { SuggestedStartLocation = PickerLocationId.MusicLibrary }; picker.FileTypeFilter.Add("*"); StorageFolder folder = await picker.PickSingleFolderAsync(); if (folder != null) { MainPage.Instance.Loader.ShowIndeterminant("ProcessRequest"); Windows.Storage.AccessCache.StorageApplicationPermissions.FutureAccessList.AddOrReplace("PickedFolderToken", folder); JsonFileHelper.SaveAsync(folder, Settings.JsonFilename, Settings.settings); MainPage.Instance.Loader.Hide(); MainPage.Instance.ShowLocalizedNotification("DataExported"); } }
public static void Save() { JsonFileHelper.SaveAsync(JsonFileName, Log); }