Beispiel #1
0
        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();
                    });
                });
            }
        }
Beispiel #2
0
 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;
 }