Ejemplo n.º 1
0
 private void playSlideClick(object sender, RoutedEventArgs e)
 {
     if (album.Valid())
     {
         Slides oneSlide = new Slides();
         oneSlide.Add(currentSlide);
         AnimationWindow animationWindow = new AnimationWindow();
         animationWindow.Show();
         animationWindow.animate(oneSlide);
     }
 }
Ejemplo n.º 2
0
 public void animate(Slides _slides, int _start = 0, String _soundtrack = "")
 {
     slides.Clear();
     foreach (Slide slide in _slides)
     {
         if (slide.keys.Count == 1 && slide.keys[0].duration == 0)
         {
             slide.keys[0].duration = 0.1;
         }
         slides.Add(slide);
     }
     if (slides.Count == 0)
     {
         MessageBox.Show("At least one slide must have non-zero duration.");
         exitOnClose = true;
         this.Close();
         return;
     }
     soundtrack = _soundtrack;
     startAnimation(_start);
 }