Esempio n. 1
0
        private bool ShouldAccept(IDataObject data)
        {
            bool accept = _cardDataLoaded && !_working;

            if (accept)
            {
                if (data.GetDataPresent("Text"))
                {
                    accept = DeckReaders.HasReaderFor(data.GetData("Text").ToString());
                }
                else if (data.GetDataPresent("FileName"))
                {
                    accept = DeckReaders.HasReaderFor(GetFileName(data));
                }
                else
                {
                    accept = false;
                }
            }
            return(accept);
        }