public Save ( |
||
subtitles | The subtitles to save. | |
properties | The properties of the file to save the subtitles to. Its |
|
textType | SubtitleTextType | The type of text content to save. |
return | void |
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; }