public static void SubscribeToFunctionsAddedEvent(FunctionsAddedEventDelegate functionsAddedEventDelegate) { lock (_lock) { _functionsAddedEvent += functionsAddedEventDelegate; } }
public static void FireFunctionAddedEvent(FunctionsAddedEventArgs functionsAddedEventArgs) { lock (_lock) { if (_functionsAddedEvent != null) { FunctionsAddedEventDelegate functionsAddedEvent = _functionsAddedEvent; functionsAddedEvent(functionsAddedEventArgs); } } }