Occurs when the state of the connection changes.
event StateChangeEventHandler StateChange
The event handler receives an argument of StateChangeEventArgs with data related to this event. Two StateChangeEventArgs properties provide information specific to this event: CurrentState and OriginalState.