public static LazyDisplayBinding CreateDisplayBinding( FilePath fileName, string mimeType, LazyOpenWithFileViewer fileViewer) { return(new LazyDisplayBinding( fileName, mimeType, fileViewer)); }
public LazyDisplayBinding ( FilePath fileName, string mimeType, LazyOpenWithFileViewer lazyFileViewer, bool canUseAsDefault = true) { fileExtension = fileName.Extension; this.mimeType = mimeType; this.lazyFileViewer = lazyFileViewer; CanUseAsDefault = canUseAsDefault; }