예제 #1
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;
        }
예제 #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);
        }
예제 #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);
        }
예제 #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;
        }
예제 #5
0
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _draggedFilename = dragDropInfo.GetFilePath();

            return true;
        }
예제 #6
0
파일: BundleDrop.cs 프로젝트: waodng/VSIX
        public bool IsDropEnabled(DragDropInfo dragDropInfo)
        {
            _draggedFilename = dragDropInfo.GetFilePath();

            return(true);
        }