Ejemplo n.º 1
0
        //=========================================================================================
        // COPY / PASTE
        //

        //-------------------------------------------------------------------
        void CopyToClipboard(TaxonTreeNode _node)
        {
            if (_node == null)
            {
                return;
            }

            DataObject data_object = new DataObject();

            // Add the data in various formats.
            System.IO.MemoryStream ms = _node.SaveXMLInMemory();
            if (ms != null)
            {
                data_object.SetData("TaxonTreeNodeXmlMemoryStream", ms);
            }
            data_object.SetData(DataFormats.Text, _node.GetHierarchicalName());
            Clipboard.SetDataObject(data_object);
        }