示例#1
0
		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);
		}
示例#2
0
        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);
        }