Пример #1
0
        /* 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);
        }
Пример #2
0
        public bool SaveTranslation(FileProperties newFileProperties)
        {
            SubtitleSaver saver = new SubtitleSaver();

            saver.Save(subtitles, newFileProperties, SubtitleTextType.Translation);

            translationFile       = saver.FileProperties;
            canTranslationBeSaved = true;

            ClearTranslationModified();
            return(true);
        }
Пример #3
0
 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);
     }
 }