Ejemplo n.º 1
0
        private static void OnOnUnderControlChanged(UnderControlEventArgs e)
        {
            var threadSafeHandler = Interlocked.CompareExchange(ref OnUnderControlChanged, null, null);

            if (threadSafeHandler != null)
            {
                threadSafeHandler(null, e);
            }
            OnUnderControlChangedEvent.Raise(e);
        }
Ejemplo n.º 2
0
 private static void OnOnUnderControlChanged(UnderControlEventArgs e)
 {
     var threadSafeHandler = Interlocked.CompareExchange(ref OnUnderControlChanged, null, null);
     if (threadSafeHandler != null) threadSafeHandler(null, e);
     OnUnderControlChangedEvent.Raise(e);
 }