private void ExportCommentaryResources(string filePath) { MergeCommentaryResourcesCollections(); using (var connection = new CommentaryResourceConnection(filePath)) { connection.Save(CommentaryResources); } }
private void ImportCommentaryResources(string gameFolderPath, string commentaryResourceFilePath) { using (var connection = new CommentaryResourceConnection(commentaryResourceFilePath)) { CommentaryResources = connection.Load(); } CommentaryResourcesDriverPrefixes = new Collection <CommentaryResource>(); foreach (var item in CommentaryResources.Where(x => x.Id >= 67 && x.Id <= 107)) { CommentaryResourcesDriverPrefixes.Add(item); } CommentaryResourcesTeamPrefixes = new Collection <CommentaryResource>(); foreach (var item in CommentaryResources.Where(x => x.Id >= 231 && x.Id <= 241)) { CommentaryResourcesTeamPrefixes.Add(item); } CommentaryResourcesWavSoundFiles = new Collection <StringValue>(GetCommentaryResourcesWavSoundFiles(gameFolderPath)); }