private void blankUI() { slides.Clear(); keyframePanel.Children.Clear(); slidePanel.Children.Clear(); imageCropper.image.Source = null; imageCropper.cropper.Visibility = Visibility.Collapsed; currentSlideIndex = 0; currentKeyframeIndex = 0; caption.Text = "<---- Add a slide to get started..."; }
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); }