public bool CanOpen(string fileName)
        {
            if (!File.Exists(fileName))
            {
                return(false);
            }

            return(PreviewHandlerHost.GetPreviewHandlerCLSID(fileName) != Guid.Empty);
        }
Exemplo n.º 2
0
 public bool CanOpen(FileInfo fileInfo)
 {
     return(PreviewHandlerHost.GetPreviewHandlerCLSID(fileInfo.FullName) != Guid.Empty);
 }
Exemplo n.º 3
0
 public bool CanOpen(string fileName)
 {
     return(PreviewHandlerHost.GetPreviewHandlerCLSID(fileName) != Guid.Empty);
 }