Catching the Pause event
The Spel class will signal your .NET application that a pause has occurred.
You can catch the Pause event in the EventReceived event for the Spel class.
VB Example:
Sub m_spel_EventReceived (ByVal sender As Object, ByVal e As RCAPINet. SpelEventArgs) Handles m_spel.EventReceived
Select Case e.Event
Case RCAPINet.SpelEvents.Pause
btnPause.Enabled = False
btnContinue.Enabled = True
End Select
End Sub
C# Examples:
void m_spel_EventReceived(object sender, SpelEventArgs e)
{
switch(e.Event)
{
case SpelEvents.Pause:
btnPause.Enabled = false;
btnContinue.Enabled = true;
break;
default:
break;
}
}