Example #1
0
 //Update current video time label (delegate)
 public void InvokeUpdateControls()
 {
     if (_vlcControl1.InvokeRequired)
     {
         _vlcControl1.Invoke(new UpdateControlsDelegate(currentTrackTime));
     }
     else
     {
         currentTrackTime();
     }
 }
Example #2
0
        void Time_update(long hold_time2)
        {
            System.Threading.Thread.Sleep(100);
            control.Invoke((MethodInvoker)(() => control.Time = (int)hold_time2));

            System.Threading.Thread.Sleep(100);
        }