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");
     }
 }
Exemplo n.º 2
0
        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");
            }
        }