Ejemplo n.º 1
0
 private void PollPreviewer()
 {
     if (_previewer != null)
     {
         _previewer.Poll();
         int position = _previewer.GetPositionMs();
         lblCurrentPosition.Text = string.Format("{0:00}:{1:00}", (position / 1000) / 60, (position / 1000) % 60);
     }
 }
Ejemplo n.º 2
0
 private void UpdateCurrentTime()
 {
     if (_previewer != null)
     {
         _previewer.Poll();
         int currentPos = _previewer.GetPositionMs();
         int currentLen = _previewer.GetLengthMs();
         lblCurrentPosition.Text = string.Format("{0:00}:{1:00} / {2:00}:{3:00}",
                                                 (currentPos / 1000) / 60, (currentPos / 1000) % 60,
                                                 (currentLen / 1000) / 60, (currentLen / 1000) % 60);
     }
     else
     {
         lblCurrentPosition.Text = "";
     }
 }