IfcDoc.FormEdit.toolStripMenuItemInsertExchange_Click C# (CSharp) Method

toolStripMenuItemInsertExchange_Click() private method

private toolStripMenuItemInsertExchange_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void toolStripMenuItemInsertExchange_Click(object sender, EventArgs e)
        {
            DocModelView docView = this.treeView.SelectedNode.Tag as DocModelView;
            DocExchangeDefinition docExchange = new DocExchangeDefinition();
            docView.Exchanges.Add(docExchange);

            TreeNode tnParent = this.treeView.SelectedNode;
            this.treeView.SelectedNode = this.LoadNode(tnParent, docExchange, docExchange.ToString(), false);

            toolStripMenuItemEditRename_Click(this, e);
        }
FormEdit