MonoTests.Mono.UIAutomation.Winforms.MockBridge.GetAutomationEventCount C# (CSharp) Méthode

GetAutomationEventCount() public méthode

public GetAutomationEventCount ( AutomationEvent eventId ) : int
eventId System.Windows.Automation.AutomationEvent
Résultat int
		public int GetAutomationEventCount (AutomationEvent eventId)
		{
			int count = 0;
			
			foreach (AutomationEventTuple evnt in AutomationEvents) {
				if (evnt.eventId.Id == eventId.Id)
					count++;
			}
			return count;
		}