コード例 #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
ファイル: AutomationElement.cs プロジェクト: windygu/FlaUI
 public IAutomationEventHandler RegisterEvent(EventId @event, TreeScope treeScope, Action <AutomationElement, EventId> action)
 {
     return(BasicAutomationElement.RegisterEvent(@event, treeScope, action));
 }