public static bool IsTargetAvailable(SlideshowPresentationTarget target) { switch (target) { case SlideshowPresentationTarget.Impress: return impressPresentationType != null; case SlideshowPresentationTarget.Powerpoint: return powerpointPresentationType != null; case SlideshowPresentationTarget.PowerpointViewer: return PowerpointViewerLib.PowerpointViewerController.IsAvailable; default: throw new InvalidOperationException("Invalid Slideshow Presentation Target"); } }
public static bool IsTargetAvailable(SlideshowPresentationTarget target) { switch (target) { case SlideshowPresentationTarget.Impress: return(impressPresentationType != null); case SlideshowPresentationTarget.Powerpoint: return(powerpointPresentationType != null); case SlideshowPresentationTarget.PowerpointViewer: return(PowerpointViewerLib.PowerpointViewerController.IsAvailable); default: throw new InvalidOperationException("Invalid Slideshow Presentation Target"); } }