protected virtual void OnHeadLeave(EventArgs args)
{
IsTracking = false;
IsDetecting = true;
if (HeadLeave != null)
{
if (SynchronizingObject != null &&
SynchronizingObject.InvokeRequired)
{
SynchronizingObject.BeginInvoke(
HeadLeave, new object[] { this, args });
}
else
{
HeadLeave(this, args);
}
}
}