public NbtClipboardData CopyFromClipboard()
        {
            NbtClipboardDataWin clip = Clipboard.GetData(typeof(NbtClipboardDataWin).FullName) as NbtClipboardDataWin;

            if (clip == null)
            {
                return(null);
            }

            TagNode node = clip.Node;

            if (node == null)
            {
                return(null);
            }

            return(new NbtClipboardData(clip.Name, node));
        }
 public void CopyToClipboard(NbtClipboardData data)
 {
     NbtClipboardDataWin dataWin = new NbtClipboardDataWin(data);
     Clipboard.SetData(typeof(NbtClipboardDataWin).FullName, dataWin);
 }
Пример #3
0
        public void CopyToClipboard(NbtClipboardData data)
        {
            var dataWin = new NbtClipboardDataWin(data);

            Clipboard.SetData(typeof(NbtClipboardDataWin).FullName, dataWin);
        }