Пример #1
0
        private void duplicateDocumentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IDocumentObject ent = treeViewProject.SelectedNode.Tag as IDocumentObject;

            if (ent != null)
            {
                CANAPEProject.CurrentProject.AddDocument(ent.Copy(), true);
            }
        }
Пример #2
0
        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());
                }
            }
        }