public bool IsDropEnabled(DragDropInfo dragDropInfo) { _filename = FontDropHandler.GetImageFilename(dragDropInfo); if (string.IsNullOrEmpty(_filename)) { return(false); } return(this._allowedFileExtensions.Contains(Path.GetExtension(_filename))); }
public bool IsDropEnabled(DragDropInfo dragDropInfo) { _imageFilename = FontDropHandler.GetImageFilename(dragDropInfo); if (!string.IsNullOrEmpty(_imageFilename)) { string fileExtension = Path.GetExtension(_imageFilename).ToLowerInvariant(); if (this._imageExtensions.Contains(fileExtension)) { return(true); } } return(false); }