IfcDoc.FormEdit.toolStripMenuItemInsertPropertyEnumeration_Click C# (CSharp) Method

toolStripMenuItemInsertPropertyEnumeration_Click() private method

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