Ejemplo n.º 1
0
        private SidebarTreeNode NewSidebarNode(DocumentationSidebar sidebar)
        {
            SidebarTreeNode sidebarNode = new SidebarTreeNode(sidebar, sidebarContextMenuStrip);

            UpdateTopics(sidebar.Topics, sidebarNode);

            return(sidebarNode);
        }
        internal DocumentationProject RetrieveProject()
        {
            DocumentationProject p = new DocumentationProject()
            {
                Title = Tag.ToString()
            };

            foreach (SidebarTreeNode sidebarNode in Nodes)
            {
                DocumentationSidebar sidebar = sidebarNode.RetrieveSidebar();
                p.Sidebars.Add(sidebar);
            }

            return(p);
        }
Ejemplo n.º 3
0
        internal DocumentationSidebar RetrieveSidebar()
        {
            DocumentationSidebar s = new DocumentationSidebar()
            {
                Title = Text
            };

            foreach (TopicTreeNode topicNode in Nodes)
            {
                DocumentationTopic topic = topicNode.RetrieveTopic();
                s.Topics.Add(topic);
            }

            return(s);
        }
Ejemplo n.º 4
0
 public SidebarTreeNode(DocumentationSidebar sidebar) : base()
 {
     Text = (!string.IsNullOrWhiteSpace(sidebar.Title) ? sidebar.Title : "Untitled");
     Tag  = sidebar;
 }
Ejemplo n.º 5
0
 public SidebarTreeNode(DocumentationSidebar sidebar, ContextMenuStrip sidebarContextMenuStrip) : this(sidebar)
 {
     ContextMenuStrip = sidebarContextMenuStrip;
 }