Esempio n. 1
0
        public bool DoWeHave(IDataObject data)
        {
            foreach (var e in ClipboardPanel.Children)
            {
                ClipboardElement elem = e as ClipboardElement;

                if (elem.Data == data)
                {
                    return(true);
                }
            }
            return(false);
        }
Esempio n. 2
0
        public void ClearUI()
        {
            foreach (var i in ClipboardPanel.Children)
            {
                ClipboardElement ec = (ClipboardElement)i;
                ec.Free();
            }

            ClipboardPanel.Children.Clear();

            GC.Collect();
            GC.WaitForPendingFinalizers();
        }