Exemplo n.º 1
0
 public Project(DirectoryInfo path)
     : base(path, "project")
 {
     foreach (var chapterDir in SubDirectories.OrderBy(k => k.Name, new MixedNumbersAndStringsComparer()))
     {
         var chapter = new Chapter(chapterDir, 1, Path + MetaData.OutputDir);
         chapter.Parent = this;
         Children.Add(chapter);
     }
 }
Exemplo n.º 2
0
        public Chapter( DirectoryInfo path, int level, string outputDir)
            : base(path, "chapter")
        {
            OutputDir = outputDir;
            Level = level;

            // Sections
            foreach (var chapterDir in SubDirectories.OrderBy(k => k.Name, new MixedNumbersAndStringsComparer()))
            {
                var ch = new Chapter(chapterDir, Level + 1, OutputDir);
                ch.Parent = this;
                Children.Add(ch);
            }
        }