Beispiel #1
0
        public MDGeneratorWorker(NotebookParser parser, string notebookName, IWriter writer)
        {
            this.parser       = parser;
            this.notebookName = notebookName;
            this.writer       = writer;

            this.DoWork += MDGeneratorWorker_DoWork;
            generator    = new MDGenerator(parser);
        }
Beispiel #2
0
        public MDGenerator(NotebookParser parser)
        {
            this.parser     = parser;
            this.onenoteApp = this.parser.GetOneNoteApp();

            var doc = parser.GetXDocument(
                null, Microsoft.Office.Interop.OneNote.HierarchyScope.hsNotebooks);

            ns = doc.Root.Name.Namespace;
        }