C# Class InternalHelper.Tests.AutomationFocusChangedEvents

Object called from the test cases to test out AutomationEvents
Inheritance: EventObject
Exibir arquivo Open project: geeksree/cSharpGeeks Class Usage Examples

Public Methods

Method Description
AddEventHandler ( ) : void

Method that registers the event handler OnEvent()

AutomationFocusChangedEvents ( ) : System

OnEvent ( object element, AutomationFocusChangedEventArgs argument ) : void

Method registered by AddEventHandler() as an event handler

WasEventFired ( AutomationElement element ) : EventFired

Method determines if the desired event was fired

Method Details

AddEventHandler() public method

Method that registers the event handler OnEvent()
public AddEventHandler ( ) : void
return void

AutomationFocusChangedEvents() public method

public AutomationFocusChangedEvents ( ) : System
return System

OnEvent() public method

Method registered by AddEventHandler() as an event handler
public OnEvent ( object element, AutomationFocusChangedEventArgs argument ) : void
element object
argument System.Windows.Automation.AutomationFocusChangedEventArgs
return void

WasEventFired() public method

Method determines if the desired event was fired
public WasEventFired ( AutomationElement element ) : EventFired
element System.Windows.Automation.AutomationElement
return EventFired