Exemple #1
0
        /// <summary>
        /// This method initializes the designer components for the
        /// Gazepoint interface tab page.
        /// </summary>
        protected override void InitializeStatusControls()
        {
            if (this.memGazepointTrackStatus == null)
            {
                this.memGazepointTrackStatus = new GazepointTrackStatusControl();

                // TobiiTrackStatus
                this.memGazepointTrackStatus.Dock     = DockStyle.Fill;
                this.memGazepointTrackStatus.Enabled  = true;
                this.memGazepointTrackStatus.Location = new Point(0, 0);
                this.memGazepointTrackStatus.Name     = "GazepointTrackStatus";
                this.memGazepointTrackStatus.Size     = new Size(190, 54);
                this.memGazepointTrackStatus.TabIndex = 0;

                try
                {
                    this.TrackStatusPanel.Controls.Add(this.memGazepointTrackStatus);
                    this.ShowCalibPlot();
                    this.ShowTrackStatus();
                }
                catch (COMException)
                {
                    this.TrackStatusPanel.Controls.Clear();
                    this.CalibrationResultPanel.Controls.Clear();
                    throw;
                }
            }
        }
Exemple #2
0
    /// <summary>
    /// This method initializes the designer components for the
    /// Gazepoint interface tab page.    
    /// </summary>
    protected override void InitializeStatusControls()
    {
      if (this.memGazepointTrackStatus == null)
      {
        this.memGazepointTrackStatus = new GazepointTrackStatusControl();

        // TobiiTrackStatus
        this.memGazepointTrackStatus.Dock = DockStyle.Fill;
        this.memGazepointTrackStatus.Enabled = true;
        this.memGazepointTrackStatus.Location = new Point(0, 0);
        this.memGazepointTrackStatus.Name = "GazepointTrackStatus";
        this.memGazepointTrackStatus.Size = new Size(190, 54);
        this.memGazepointTrackStatus.TabIndex = 0;

        try
        {
          this.TrackStatusPanel.Controls.Add(this.memGazepointTrackStatus);
          this.ShowCalibPlot();
          this.ShowTrackStatus();
        }
        catch (COMException)
        {
          this.TrackStatusPanel.Controls.Clear();
          this.CalibrationResultPanel.Controls.Clear();
          throw;
        }
      }
    }