public void RemoveAutomationEventHandler(classic.AutomationEvent eventId, IUiElement element, classic.AutomationEventHandler eventHandler) { classic.Automation.RemoveAutomationEventHandler( eventId, element.GetSourceElement() as classic.AutomationElement, eventHandler); }
public void AddAutomationEventHandler(classic.AutomationEvent eventId, IUiElement element, classic.TreeScope scope, classic.AutomationEventHandler eventHandler) { classic.Automation.AddAutomationEventHandler( eventId, element.GetSourceElement() as classic.AutomationElement, scope, eventHandler); }