public static void AddPhotoalbumSlide(this InkCanvas canvas, object sender, RoutedEventArgs e)
 {
     var slide = new TalkingPhotoAlbumSlideWidget();
     slide = slide.Create() as TalkingPhotoAlbumSlideWidget;
     if (slide == null) return;
     var mainWin = DesignerMainWindow.GetInstance();
     Practice practice = Practice.GetInstance();
     Slide originalSlide = practice.GetSlideByPosition(mainWin.GetCurrentSlideNr());
     practice.ReplaceSlides(slide, originalSlide);
     slide.DisplayOnCanvas(canvas);
     slide.Execute();
     mainWin.RefreshCurrentThumbnail();
 }
 private static Slide CreateNewSlide(SlideType pType)
 {
     Slide slide = null;
     if (pType.Equals(SlideType.Empty))
         slide = SlideFactory.CreateEmptySlide();
     else if (pType.Equals(SlideType.TalkingPhotoAlbum))
     {
         slide = new TalkingPhotoAlbumSlideWidget();
         (slide as TalkingPhotoAlbumSlideWidget).Create();
         (slide as TalkingPhotoAlbumSlideWidget).Execute();
     }
     return slide;
 }