IssacJones
asked on
Handler
Hi
I'm looking at some legacy code in VB.net and wondering what the code does. Here is a snippet:
Public Sub RegisterHandler(ByVal handler As CloseApplication)
Me.m_handler = handler
End Sub
Protected Overrides Sub OnClosed(ByVal e As System.EventArgs)
If Not m_handler Is Nothing And Me.m_confirmClicked = False Then
m_handler.Invoke()
End If
End Sub
Can anybody explain what the m_handler variable is doing?
Issac
I'm looking at some legacy code in VB.net and wondering what the code does. Here is a snippet:
Public Sub RegisterHandler(ByVal handler As CloseApplication)
Me.m_handler = handler
End Sub
Protected Overrides Sub OnClosed(ByVal e As System.EventArgs)
If Not m_handler Is Nothing And Me.m_confirmClicked = False Then
m_handler.Invoke()
End If
End Sub
Can anybody explain what the m_handler variable is doing?
Issac
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER