Example #1
0
 private void toolStripMenuItemInsertComment_Click(object sender, EventArgs e)
 {
     TreeNode tnParent = this.treeView.SelectedNode;
     DocSchema docSchema = (DocSchema)tnParent.Tag;
     DocComment docComment = new DocComment();
     InitDefinition(docComment);
     docComment.Name = null;
     docSchema.Comments.Add(docComment);
     this.treeView.SelectedNode = this.LoadNode(tnParent.Nodes[9], docComment, docComment.ToString(), false);
     toolStripMenuItemEditProperties_Click(this, e);
 }