private static void LoadSlide(Slide slide) { CurrentSlide = slide; ActionSlideChanged.Raise(slide); SayTitle(); if (CurrentSlide.AutoPlay) { ActionPlay.Raise(); } if(CurrentSlide.Static) { Task.Factory.StartNew(() => { Task.Delay(3500).Wait(); ExecuteInGUIThread(() => { ActionPause.Raise(); }); }); } }
private void SlideManager_SlideChanged(Slide slide) { axWindowsMediaPlayer.Ctlcontrols.stop(); axWindowsMediaPlayer.URL = Path.Combine(Directory.GetCurrentDirectory(), slide.MoviePath); axWindowsMediaPlayer.Ctlcontrols.stop(); labelTitle.Text = slide.Title; labelTitle.Visible = true; }