コード例 #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
ファイル: HtmlImageDrop.cs プロジェクト: waodng/VSIX
        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);
        }