Esempio n. 1
0
 public static void SubscribeToFunctionsAddedEvent(FunctionsAddedEventDelegate functionsAddedEventDelegate)
 {
     lock (_lock)
     {
         _functionsAddedEvent += functionsAddedEventDelegate;
     }
 }
Esempio n. 2
0
        public static void FireFunctionAddedEvent(FunctionsAddedEventArgs functionsAddedEventArgs)
        {
            lock (_lock)
            {
                if (_functionsAddedEvent != null)
                {
                    FunctionsAddedEventDelegate functionsAddedEvent = _functionsAddedEvent;

                    functionsAddedEvent(functionsAddedEventArgs);
                }
            }
        }
 public static void SubscribeToFunctionsAddedEvent(FunctionsAddedEventDelegate functionsAddedEventDelegate)
 {
     lock (_lock)
     {
         _functionsAddedEvent += functionsAddedEventDelegate;
     }
 }