Example #1
0
 private void loopTimerEvent(Object source, ElapsedEventArgs e)
 {
     if (SeekBar.InvokeRequired)
     {
         var d = new SafeCallDelegateSeekBar(loopTimerEvent);
         this.Invoke(d, new object[] { source, e });
     }
     else
     {
         var    MouseCoordinates = SeekBar.PointToClient(Cursor.Position);
         double progress         = (double)(MouseCoordinates.X) / SeekBar.Width;
         ttyrecDecoder.SeekTime = new TimeSpan((long)(ttyrecDecoder.Length.Ticks * progress));
     }
 }