public void AddAutomationEventHandler (AutomationEvent eventId, IElement element, TreeScope scope, AutomationEventHandler eventHandler) { AutomationEventHandlerData data = new AutomationEventHandlerData ( eventId, element, scope, eventHandler); automationEventHandlers.Add (data); }