public bool SaveTranslation (FileProperties newFileProperties) { SubtitleSaver saver = new SubtitleSaver(); saver.Save(subtitles, newFileProperties, SubtitleTextType.Translation); translationFile = saver.FileProperties; canTranslationBeSaved = true; ClearTranslationModified(); return true; }
private bool SaveFile (SubLib.Core.Domain.Subtitles subtitles, FileProperties properties, SubtitleTextType textType) { try { SubtitleSaver saver = new SubtitleSaver(); saver.Save(subtitles, properties, textType); return true; } catch (Exception e) { Console.Error.WriteLine("Caught exception saving backup file: " + e); return false; } }
/* Public methods */ public bool Save (FileProperties newFileProperties) { SubtitleSaver saver = new SubtitleSaver(); saver.Save(subtitles, newFileProperties, SubtitleTextType.Text); textFile = saver.FileProperties; canTextBeSaved = true; ClearTextModified(); return true; }