예제 #1
0
        } // 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);
        }
예제 #2
0
파일: AslTracker.cs 프로젝트: DeSciL/Ogama
    } // 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;
    }