public static void AddAutomationEventHandler (AutomationEvent eventId, IRawElementProviderSimple provider, TreeScope scope, AutomationEventHandler eventHandler) { var entry = new AutomationEventEntry (eventId, provider, scope, eventHandler); lock (automationEventEntries) automationEventEntries.Add (entry); }
public static void AddAutomationEventHandler(AutomationEvent eventId, IRawElementProviderSimple provider, TreeScope scope, AutomationEventHandler eventHandler) { var entry = new AutomationEventEntry(eventId, provider, scope, eventHandler); lock (automationEventEntries) automationEventEntries.Add(entry); }