/// <summary> /// Registers the given event /// </summary> public IAutomationEventHandler RegisterEvent(EventId @event, TreeScope treeScope, Action <AutomationElement, EventId> action) { if (Equals(@event, EventId.NotSupportedByFramework)) { throw new NotSupportedByFrameworkException(); } return(BasicAutomationElement.RegisterEvent(@event, treeScope, action)); }
public IAutomationEventHandler RegisterEvent(EventId @event, TreeScope treeScope, Action <AutomationElement, EventId> action) { return(BasicAutomationElement.RegisterEvent(@event, treeScope, action)); }