Пример #1
0
        private SidebarTreeNode NewSidebarNode(DocumentationSidebar sidebar)
        {
            SidebarTreeNode sidebarNode = new SidebarTreeNode(sidebar, sidebarContextMenuStrip);

            UpdateTopics(sidebar.Topics, sidebarNode);

            return(sidebarNode);
        }
Пример #2
0
 private void UpdateSidebars(List <DocumentationSidebar> sidebars, TreeNode projectNode)
 {
     foreach (var sidebar in sidebars)
     {
         SidebarTreeNode sidebarNode = NewSidebarNode(sidebar);
         projectNode.Nodes.Add(sidebarNode);
     }
 }
Пример #3
0
        private void newTopicToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SidebarTreeNode sidebarNode = (SidebarTreeNode)treeView1.SelectedNode;

            AddTopicIntoSidebar(sidebarNode, NewTopicNode(NewTopic()));
        }
Пример #4
0
 private void AddTopicIntoSidebar(SidebarTreeNode sidebarNode, TopicTreeNode topicTreeNode)
 {
     AddTopicIntoParent(sidebarNode, topicTreeNode);
 }
Пример #5
0
 private void AddSidebarIntoProject(ProjectTreeNode projectNode, SidebarTreeNode sidebarTreeNode)
 {
     projectNode.Nodes.Add(sidebarTreeNode);
     treeView1.SelectedNode       = sidebarTreeNode;
     weblidityFormCloser1.IsDirty = true;
 }