private toolStripMenuItemInsertComment_Click ( object sender, EventArgs e ) : void | ||
sender | object | |
e | EventArgs | |
return | void |
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);
}