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