Esempio n. 1
0
        public bool ImportSubtitles()
        {
            string filePath = GetImportFilePath();
            if (filePath == null)
                return false;

            mSubtitleFile = mFileReader.ReadFile(filePath);
            return true;
        }
Esempio n. 2
0
        public bool CreateFile(string filePath, ISubtitleFile subtitleFile)
        {
            bool result = true;

            StreamWriter writer = new StreamWriter(filePath);

            IList<string> output = subtitleFile.GetAsOutput();

            foreach(string line in output)
            {
                writer.WriteLine(line);
            }

            writer.Close();

            return result;
        }
Esempio n. 3
0
 public ASSDataSet(ASSStyleType styleType, ISubtitleFile subtitleFile)
 {
     mStyleType = styleType;
     mSubtitleFile = subtitleFile;
 }