Esempio n. 1
0
 private void StateChanged(object sender, EyeTrackingStateChangedEventArgs e)
 {
     // Forward state change to UI thread
     if (InvokeRequired)
     {
         Invoke((Action <EyeTrackingStateChangedEventArgs>)UpdateState, new object[] { e });
     }
     else
     {
         UpdateState(e);
     }
 }
Esempio n. 2
0
        private void UpdateState(EyeTrackingStateChangedEventArgs eyeTrackingStateChangedEventArgs)
        {
            if (!string.IsNullOrEmpty(eyeTrackingStateChangedEventArgs.ErrorMessage))
            {
                return;
            }


            if (eyeTrackingStateChangedEventArgs.EyeTrackingState != EyeTrackingState.Tracking)
            {
            }
            else
            {
            }
        }