Beispiel #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 FrameworkAutomationElement.RegisterEvent(@event, treeScope, action);
 }