public bool ImportSubtitles() { string filePath = GetImportFilePath(); if (filePath == null) return false; mSubtitleFile = mFileReader.ReadFile(filePath); return true; }
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; }
public ASSDataSet(ASSStyleType styleType, ISubtitleFile subtitleFile) { mStyleType = styleType; mSubtitleFile = subtitleFile; }