Esempio n. 1
0
        public void StopWatchingMediaKeys()
        {
            if (tapThread != null)
            {
                tapThread.Stop();
                tapThread = null;
            }

            if (eventPort != null)
            {
                eventPort.Invalidate();
                eventPort.Dispose();
                eventPort = null;
            }

            if (eventPortSource != null)
            {
                eventPortSource.Invalidate();
                eventPortSource.Dispose();
                eventPortSource = null;
            }
        }
Esempio n. 2
0
 public void Stop()
 {
     CFRunLoop.Stop();
 }