private void miCopy_Click(object sender, System.EventArgs e) { TreeNode n = this.modelTree.SelectedNode; if (n.Parent.Text == "Classes") { ModelClass c = (ModelClass)n.Tag; copyClass = c.Copy(); copyClass.Name = "Copy of " + copyClass.Name; } }