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

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

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

            return false;
        }
Exemple #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);
        }
Exemple #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);
        }
        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;
        }
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _draggedFilename = dragDropInfo.GetFilePath();

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

            return(true);
        }