} // end of bool Connect() /// <summary> /// Starts to display the screens for the calibration. /// </summary> /// <param name="isRecalibrating">whether to use recalibration or not.</param> /// <returns><strong>True</strong> if calibration succeded, otherwise /// <strong>false</strong>.</returns> public override bool Calibrate(bool isRecalibrating) { if (this.dlgTrackStatus != null) { this.dlgTrackStatus.Dispose(); } this.dlgTrackStatus = new AslTrackStatus(); Rectangle presentationBounds = PresentationScreen.GetPresentationWorkingArea(); this.dlgTrackStatus.Location = new Point( (presentationBounds.Width / 2) - (this.dlgTrackStatus.Width / 2), (presentationBounds.Height / 2) - (this.dlgTrackStatus.Height / 2)); this.dlgTrackStatus.ShowDialog(); return(true); }
} // end of bool Connect() /// <summary> /// Starts to display the screens for the calibration. /// </summary> /// <param name="isRecalibrating">whether to use recalibration or not.</param> /// <returns><strong>True</strong> if calibration succeded, otherwise /// <strong>false</strong>.</returns> public override bool Calibrate(bool isRecalibrating) { if (this.dlgTrackStatus != null) { this.dlgTrackStatus.Dispose(); } this.dlgTrackStatus = new AslTrackStatus(); Rectangle presentationBounds = PresentationScreen.GetPresentationWorkingArea(); this.dlgTrackStatus.Location = new Point( (presentationBounds.Width / 2) - (this.dlgTrackStatus.Width / 2), (presentationBounds.Height / 2) - (this.dlgTrackStatus.Height / 2)); this.dlgTrackStatus.ShowDialog(); return true; }