Adds an event listener for the given type
The type
The listener
Dispatches an event to all registered listeners
The type
Optionalargs: CustomEventArgs
The arguments
Checks if any listeners are registered for the given type
The type
true if there are any listeners registered for the given type, false otherwise
Removes all event listeners, optionally filtered by type
Optionaltype: string
The type
Removes a specific event listener
The type
The listener
Custom event dispatcher for managing event listeners