Esempio n. 1
0
 private void Timer1Tick(object sender, EventArgs e)
 {
     if (MediaPlayerStart != null)
     {
         if (!MediaPlayerStart.IsPaused)
         {
             MediaPlayerStart.RefreshProgressBar();
             if (_startStopPosition >= 0 && MediaPlayerStart.CurrentPosition > _startStopPosition)
             {
                 MediaPlayerStart.Pause();
                 MediaPlayerStart.CurrentPosition = _startGoBackPosition;
                 _startStopPosition = -1;
             }
             UiUtil.ShowSubtitle(new Subtitle(_paragraphs), MediaPlayerStart);
         }
         if (!MediaPlayerEnd.IsPaused)
         {
             MediaPlayerEnd.RefreshProgressBar();
             if (_endStopPosition >= 0 && MediaPlayerEnd.CurrentPosition > _endStopPosition)
             {
                 MediaPlayerEnd.Pause();
                 MediaPlayerEnd.CurrentPosition = _endGoBackPosition;
                 _endStopPosition = -1;
             }
             UiUtil.ShowSubtitle(new Subtitle(_paragraphs), MediaPlayerEnd);
         }
     }
 }
Esempio n. 2
0
 private void timerProgressBarRefresh_Tick(object sender, EventArgs e)
 {
     if (MediaPlayerStart.VideoPlayer != null) // && MediaPlayerStart.VideoPlayer.GetType() == typeof(QuartsPlayer))
     {
         MediaPlayerStart.RefreshProgressBar();
     }
     if (MediaPlayerEnd.VideoPlayer != null) // && MediaPlayerEnd.VideoPlayer.GetType() == typeof(QuartsPlayer))
     {
         MediaPlayerEnd.RefreshProgressBar();
     }
 }
Esempio n. 3
0
 private void SizeWmp()
 {
     MediaPlayerStart.Height = panelControlsStart.Top - (MediaPlayerStart.Top + 2);
     MediaPlayerEnd.Height   = MediaPlayerStart.Height;
     MediaPlayerEnd.RefreshProgressBar();
 }