public void Init(Core.Media media)
 {
     if (media is SlideshowMedia)
     {
         this.media = (SlideshowMedia)media;
         pres       = SlideshowPresentationFactory.CreatePresentation(this.media);
         SetupEventListeners();
         pres.Load();
     }
     else
     {
         throw new ArgumentException("media is not a valid slideshow media.");
     }
 }
 public void Init(Core.Media media)
 {
     if (media is SlideshowMedia)
     {
         this.media = (SlideshowMedia)media;
         pres = SlideshowPresentationFactory.CreatePresentation(this.media);
         SetupEventListeners();
         pres.Load();
     }
     else
     {
         throw new ArgumentException("media is not a valid slideshow media.");
     }
 }