Esempio n. 1
0
 public static void SubscribeToFunctionsRemovedEvent(FunctionsRemovedEventDelegate functionsRemovedEventDelegate)
 {
     lock (_lock)
     {
         _functionsRemovedEvent += functionsRemovedEventDelegate;
     }
 }
Esempio n. 2
0
        public static void FireFunctionRemovedEvent(FunctionsRemovedEventArgs functionsRemovedEventArgs)
        {
            lock (_lock)
            {
                if (_functionsRemovedEvent != null)
                {
                    FunctionsRemovedEventDelegate functionsRemovedEvent = _functionsRemovedEvent;

                    functionsRemovedEvent(functionsRemovedEventArgs);
                }
            }
        }
 public static void SubscribeToFunctionsRemovedEvent(FunctionsRemovedEventDelegate functionsRemovedEventDelegate)
 {
     lock (_lock)
     {
         _functionsRemovedEvent += functionsRemovedEventDelegate;
     }
 }