private void duplicateDocumentToolStripMenuItem_Click(object sender, EventArgs e) { IDocumentObject ent = treeViewProject.SelectedNode.Tag as IDocumentObject; if (ent != null) { CANAPEProject.CurrentProject.AddDocument(ent.Copy(), true); } }
private void copyToolStripMenuItem_Click(object sender, EventArgs e) { if (treeViewProject.SelectedNode != null) { IDocumentObject ent = treeViewProject.SelectedNode.Tag as IDocumentObject; if (ent != null) { Clipboard.SetData(DocumentDataType, ent.Copy()); } } }