Пример #1
0
        public HelpSource(string base_filename, bool create)
        {
            this.name         = Path.GetFileName(base_filename);
            this.basePath     = Path.GetDirectoryName(base_filename);
            this.treeFilePath = base_filename + ".tree";
            this.storage      = new Monodoc.Storage.ZipStorage(base_filename + ".zip");
            this.cache        = DocCacheHelper.GetDefaultCache(Name);

            tree = create ? new Tree(this, string.Empty, string.Empty) : new Tree(this, treeFilePath);

            source_id = id++;
        }
Пример #2
0
 public HtmlGenerator(IDocCache defaultCache)
 {
     this.defaultCache = defaultCache;
 }
Пример #3
0
 public HelpSource()
 {
     tree       = new Tree(this, "Blah", "Blah");
     source_id  = id++;
     this.cache = new Caches.NullCache();
 }