public ProjectInfo(String epubPath, String projPath) { ProjectPath = Project.GetDirectory(projPath); ProjectName = Path.GetFileNameWithoutExtension(ProjectPath); EpubProjectPath = Path.Combine(ProjectPath, ProjectName + ".epubproj"); EpubName = Path.GetFileName(epubPath); File.Copy(epubPath, EpubPath); PackageName = EpubFile.GetOpfDirectory(); Project.Synthesizer.TempPath = TempPath; _DictionaryName = "Dictionary.txt"; Dictionary = new Dictionary <String, List <String> >(); using (StreamReader streamReader = new StreamReader(ProjectProperties.DictionaryPath)) { while (!streamReader.EndOfStream) { String[] line = streamReader.ReadLine().Split(' '); if (Dictionary.ContainsKey(line[0])) { Dictionary[line[0]].AddRange(line); } else { Dictionary.Add(line[0], line.ToList()); } Dictionary[line[0]] = Dictionary[line[0]].Distinct().ToList(); } streamReader.Close(); } Contents = new List <Content>(); Speed = 1; }