Aborting All Tasks
If you are running tasks and want to abort all tasks at once, you can use the Stop method of the Spel class. The Stop method has an optional parameter that allows you to additionally stop all background tasks.
VB Example:
Sub btnStop_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnStop.Click
m_spel.Stop()
btnStop.Enabled = False
btnStart.Enabled = True
End Sub
C# Examples:
void btnStop_Click(object sender, EventArgs e)
{
m_spel.Stop();
btnStop.Enabled = false;
btnStart.Enabled = true;
}