public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _imageFilename = dragDropInfo.GetFilePath();

            if (string.IsNullOrEmpty(_imageFilename))
                return false;

            if (_imageExtensions.Contains(Path.GetExtension(_imageFilename)))
                return true;

            return false;
        }
Esempio n. 2
0
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            draggedFilename = dragDropInfo.GetFilePath();

            if (!string.IsNullOrEmpty(draggedFilename))
            {
                string fileExtension = Path.GetExtension(draggedFilename).ToLowerInvariant();

                if (this.formats.ContainsKey(fileExtension))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 3
0
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _imageFilename = dragDropInfo.GetFilePath();

            if (string.IsNullOrEmpty(_imageFilename))
            {
                return(false);
            }

            if (_imageExtensions.Contains(Path.GetExtension(_imageFilename)))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 4
0
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            draggedFilename = dragDropInfo.GetFilePath();

            if (!string.IsNullOrEmpty(draggedFilename))
            {
                string fileExtension = Path.GetExtension(draggedFilename).ToLowerInvariant();

                if (this.formats.ContainsKey(fileExtension))
                    return true;
            }

            return false;
        }
Esempio n. 5
0
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _draggedFilename = dragDropInfo.GetFilePath();

            return true;
        }
Esempio n. 6
0
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _draggedFilename = dragDropInfo.GetFilePath();

            return(true);
        }