Exemplo n.º 1
0
        private static void OnTimedEvent(Object source, System.Timers.ElapsedEventArgs e)
        {
            // Only one thread can access it
            main.Dispatcher.Invoke(() =>
            {
                main.Show();

                // Set up the video
                main.PlayNextVideo(new object(), new RoutedEventArgs());
                main.VidPlayer.Play();
            });

            // setup volume control timer
            VolumeHandler.TurnOnVolumeTimer();

            // Turn off other timer
            KeyHandler.ShowMe.Interval = Constants.KeyPressWaitTime;
            KeyHandler.ShowMe.Enabled  = false;
        }