public override int Test(Uri uri) { if (!SlideshowPresentationFactory.IsTargetAvailable(SlideshowPresentationTarget.PowerpointViewer) && !SlideshowPresentationFactory.IsTargetAvailable(SlideshowPresentationTarget.Powerpoint) && !SlideshowPresentationFactory.IsTargetAvailable(SlideshowPresentationTarget.Impress)) { return(-1); } else { return(CheckExtension(uri) ? 100 : -1); } }
public override int Test(Uri uri) { if (!CheckExtension(uri)) { return(-1); } if (!SlideshowPresentationFactory.IsTargetAvailable(SlideshowPresentationTarget.Impress) && !SlideshowPresentationFactory.IsTargetAvailable(SlideshowPresentationTarget.Powerpoint)) { return(-1); } return(100); }