IfcDoc.FormEdit.ClipboardCopy C# (CSharp) Méthode

ClipboardCopy() private méthode

private ClipboardCopy ( bool cut ) : void
cut bool
Résultat void
        private void ClipboardCopy(bool cut)
        {
            if (this.treeView.Focused)
            {
                // restore state
                if (this.m_clipboardNode != null)
                {
                    this.m_clipboardNode.ForeColor = Color.Black;
                }

                this.m_clipboardNode = this.treeView.SelectedNode;
                this.m_clipboard = this.treeView.SelectedNode.Tag as DocObject;
                this.m_clipboardCut = cut;

                if (this.m_clipboardCut)
                {
                    this.m_clipboardNode.ForeColor = Color.Gray;
                }

                // update view state (may be impacted by what is on the clipboard)
                this.TreeView_AfterSelect(this, new TreeViewEventArgs(this.treeView.SelectedNode, TreeViewAction.Unknown));
            }
        }
FormEdit