Esempio n. 1
0
 private void UpdateTopics(List <DocumentationTopic> topics, TreeNode sidebarNode)
 {
     foreach (var topic in topics)
     {
         TopicTreeNode topicNode = NewTopicNode(topic);
         sidebarNode.Nodes.Add(topicNode);
     }
 }
Esempio n. 2
0
        private TopicTreeNode NewTopicNode(DocumentationTopic topic)
        {
            TopicTreeNode topicNode = new TopicTreeNode(topic, topicContextMenuStrip);

            UpdateTopics(topic.Topics, topicNode);

            return(topicNode);
        }
Esempio n. 3
0
 private void AddTopicIntoTopic(TopicTreeNode topicNode, TopicTreeNode topicTreeNode)
 {
     AddTopicIntoParent(topicNode, topicTreeNode);
 }
Esempio n. 4
0
        private void newTopicToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            TopicTreeNode topicNode = (TopicTreeNode)treeView1.SelectedNode;

            AddTopicIntoTopic(topicNode, NewTopicNode(NewTopic()));
        }
Esempio n. 5
0
 private void AddTopicIntoSidebar(SidebarTreeNode sidebarNode, TopicTreeNode topicTreeNode)
 {
     AddTopicIntoParent(sidebarNode, topicTreeNode);
 }