private void toolStripMenuItemInsertPropertyEnumeration_Click(object sender, EventArgs e)
{
TreeNode tnParent = this.treeView.SelectedNode;
TreeNode tn = tnParent;
if (tn.Parent.Tag is DocSchema)
{
tn = tn.Parent;
}
if (tn.Tag is DocSchema)
{
DocSchema docSchema = (DocSchema)tn.Tag;
DocPropertyEnumeration docType = new DocPropertyEnumeration();
docSchema.PropertyEnums.Add(docType);
this.treeView.SelectedNode = this.LoadNode(tn.Nodes[4], docType, null, true);
toolStripMenuItemEditRename_Click(this, e);
}
}