예제 #1
0
 /// <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));
 }
예제 #2
0
 public IAutomationEventHandler RegisterEvent(EventId @event, TreeScope treeScope, Action <AutomationElement, EventId> action)
 {
     return(BasicAutomationElement.RegisterEvent(@event, treeScope, action));
 }