Private Sub Calculator1_FactorialComplete(ByVal Factorial As System.Double, ByVal TotalCalculations As System.Double) Handles Calculator1.FactorialComplete
' BeginInvoke causes asynchronous execution to begin at the address
' specified by the delegate. Simply put, it transfers execution of
' this method back to the main thread. Any parameters required by
' the method contained at the delegate are wrapped in an object and
' passed.
Me.BeginInvoke(New FHandler(AddressOf FactHandler), New Object() _
{Factorial, TotalCalculations })
End Sub
Private Sub Calculator1_FactorialMinusComplete(ByVal Factorial As System.Double, ByVal TotalCalculations As System.Double) Handles Calculator1.FactorialMinusComplete
Me.BeginInvoke(New FHandler(AddressOf Fact1Handler), New Object() _
{ Factorial, TotalCalculations })
End Sub
Private Sub Calculator1_AddTwoComplete(ByVal Result As System.Int32, ByVal TotalCalculations As System.Double) Handles Calculator1.AddTwoComplete
Me.BeginInvoke(New A2Handler(AddressOf Add2Handler), New Object() _
{ Result, TotalCalculations })
End Sub
Private Sub Calculator1_LoopComplete(ByVal TotalCalculations As System.Double, ByVal Counter As System.Int32) Handles Calculator1.LoopComplete
Me.BeginInvoke(New LDHandler(AddressOf Ldonehandler), New Object() _
{ TotalCalculations, Counter })
End Sub