/// <summary>
            /// Constructor for a Windows Form that performs an eye tracker calibration routine with
            /// either 5, 9, or 16 points.  Each target is displayed for a settable duration.
            /// </summary>
            /// <seealso cref="T:QuickLink2DotNetHelper.QLHelper.CalibrationForm"/>
            /// <param name="deviceId">
            /// The ID of the device to be calibrated.  This is the value found in the
            /// <see cref="QLHelper.DeviceId"/> field.
            /// </param>
            /// <param name="calibrationType">
            /// The type of calibration to perform (5, 9, or 16-point).  Any member of
            /// <see cref="QuickLink2DotNet.QLCalibrationType"/> is accepted.
            /// </param>
            /// <param name="targetDuration">
            /// The duration, in milliseconds, to show each target on the screen during the calibration
            /// sequence.
            /// </param>
            public CalibrationForm(int deviceId, QLCalibrationType calibrationType, int targetDuration)
            {
                this._deviceId        = deviceId;
                this._calibrationType = calibrationType;
                this._targetDuration  = targetDuration;

                this._calibrationId = 0;

                QLHelper.CalibrationTypeToNumberOfPoints(this._calibrationType, out this._numberOfTargets);

                this._leftScores  = new QLCalibrationScore[this._numberOfTargets];
                this._rightScores = new QLCalibrationScore[this._numberOfTargets];
                this._targets     = new QLCalibrationTarget[this._numberOfTargets];

                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                this.Width           = Screen.PrimaryScreen.WorkingArea.Width;
                this.Height          = Screen.PrimaryScreen.WorkingArea.Height;
                this.TopMost         = false;
                this.WindowState     = System.Windows.Forms.FormWindowState.Minimized;
                this.Hide();

                this._calibrationPictureBox            = new System.Windows.Forms.PictureBox();
                this._calibrationPictureBox.BackColor  = System.Drawing.SystemColors.ButtonShadow;
                this._calibrationPictureBox.Dock       = System.Windows.Forms.DockStyle.Fill;
                this._calibrationPictureBox.ClientSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
                this.Controls.Add(this._calibrationPictureBox);

                this._calibrationPictureBox.Paint += new PaintEventHandler(CalibrationPictureBoxPaint);
            }