/////////////////////////////////////////////////////////////////////////////// // Defining Properties // /////////////////////////////////////////////////////////////////////////////// #region PROPERTIES #endregion //PROPERTIES /////////////////////////////////////////////////////////////////////////////// // Eventhandler // /////////////////////////////////////////////////////////////////////////////// #region EVENTS /////////////////////////////////////////////////////////////////////////////// // Eventhandler for UI, Menu, Buttons, Toolbars etc. // /////////////////////////////////////////////////////////////////////////////// #region WINDOWSEVENTHANDLER /// <summary> /// The <see cref="Control.Click"/> event handler for the /// <see cref="Button"/> continue. /// Shows up the test map to calibrate the ASL eye tracker. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">An empty <see cref="EventArgs"/>.</param> private void continueButton_Click(object sender, EventArgs e) { if (this.scrCalibration != null) { this.scrCalibration.Dispose(); } this.scrCalibration = new AslCalibration(); // Wires the AslCalibrationDone event of this AslCalibration // to the aslInterface_CalibrationDone method this.scrCalibration.AslCalibrationDone += new EventHandler(this.aslInterface_CalibrationDone); // Display the picture in full screen this.scrCalibration.ClientSize = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); this.scrCalibration.Location = new Point(0, 0); this.scrCalibration.Show(); }
/////////////////////////////////////////////////////////////////////////////// // Defining Properties // /////////////////////////////////////////////////////////////////////////////// #region PROPERTIES #endregion //PROPERTIES /////////////////////////////////////////////////////////////////////////////// // Eventhandler // /////////////////////////////////////////////////////////////////////////////// #region EVENTS /////////////////////////////////////////////////////////////////////////////// // Eventhandler for UI, Menu, Buttons, Toolbars etc. // /////////////////////////////////////////////////////////////////////////////// #region WINDOWSEVENTHANDLER /// <summary> /// The <see cref="Control.Click"/> event handler for the /// <see cref="Button"/> continue. /// Shows up the test map to calibrate the ASL eye tracker. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">An empty <see cref="EventArgs"/>.</param> private void continueButton_Click(object sender, EventArgs e) { if (this.scrCalibration != null) { this.scrCalibration.Dispose(); } this.scrCalibration = new AslCalibration(); // Wires the AslCalibrationDone event of this AslCalibration // to the aslInterface_CalibrationDone method this.scrCalibration.AslCalibrationDone += new EventHandler(this.aslInterface_CalibrationDone); // Display the picture in full screen this.scrCalibration.ClientSize = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); this.scrCalibration.Location = new Point(0, 0); this.scrCalibration.Show(); }