/* 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); }
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) { Logger.Error(e, "Caught an exception while saving backup file"); return(false); } }