public bool CanOpen(string fileName) { if (!File.Exists(fileName)) { return(false); } return(PreviewHandlerHost.GetPreviewHandlerCLSID(fileName) != Guid.Empty); }
public bool CanOpen(FileInfo fileInfo) { return(PreviewHandlerHost.GetPreviewHandlerCLSID(fileInfo.FullName) != Guid.Empty); }
public bool CanOpen(string fileName) { return(PreviewHandlerHost.GetPreviewHandlerCLSID(fileName) != Guid.Empty); }