private void GetScoring(int calibrationId, int numTargets, QLCalibrationTarget[] targets)
 {
     leftScores  = new QLCalibrationScore[numTargets];
     rightScores = new QLCalibrationScore[numTargets];
     for (int i = 0; i < numTargets; i++)
     {
         QuickLink2API.QLCalibration_GetScoring(calibrationId, targets[i].targetId, QLEyeType.QL_EYE_TYPE_LEFT, out leftScores[i]);
         QuickLink2API.QLCalibration_GetScoring(calibrationId, targets[i].targetId, QLEyeType.QL_EYE_TYPE_RIGHT, out rightScores[i]);
     }
 }
            private bool UpdateScores()
            {
                // Get scores.
                for (int i = 0; i < this._numberOfTargets; i++)
                {
                    QLError error = QuickLink2API.QLCalibration_GetScoring(this._calibrationId, this.Targets[i].targetId, QLEyeType.QL_EYE_TYPE_LEFT, out this.LeftScores[i]);
                    if (error != QLError.QL_ERROR_OK)
                    {
                        Console.WriteLine("QLCalibration_GetScoring(left) returned {0}.", error.ToString());
                        return(false);
                    }

                    error = QuickLink2API.QLCalibration_GetScoring(this._calibrationId, this.Targets[i].targetId, QLEyeType.QL_EYE_TYPE_RIGHT, out this.RightScores[i]);
                    if (error != QLError.QL_ERROR_OK)
                    {
                        Console.WriteLine("QLCalibration_GetScoring(right) returned {0}.", error.ToString());
                        return(false);
                    }
                }

                return(true);
            }