Exemple #1
0
        /// <summary>
        ///   This method initializes the designer components for the
        ///   tobii interface tab page.
        ///   This is from the visual studio designer removed, because it crashes,
        ///   when tobii sdk dlls are not installed on the target computer.
        /// </summary>
        protected override void InitializeStatusControls()
        {
            if (this.tobiiTrackStatus == null && this.tobiiCalibPlot == null)
            {
                this.tobiiTrackStatus = new TobiiTrackStatusControl();
                this.tobiiCalibPlot   = new TobiiCalibrationResultPanel();

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

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

                try
                {
                    this.TrackStatusPanel.Controls.Add(this.tobiiTrackStatus);
                    this.CalibrationResultPanel.Controls.Add(this.tobiiCalibPlot);

                    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
    ///   tobii interface tab page.
    ///   This is from the visual studio designer removed, because it crashes,
    ///   when tobii sdk dlls are not installed on the target computer.
    /// </summary>
    protected override void InitializeStatusControls()
    {
      if (this.tobiiTrackStatus == null && this.tobiiCalibPlot == null)
      {
        this.tobiiTrackStatus = new TobiiTrackStatusControl();
        this.tobiiCalibPlot = new TobiiCalibrationResultPanel();

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

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

        try
        {
          this.TrackStatusPanel.Controls.Add(this.tobiiTrackStatus);
          this.CalibrationResultPanel.Controls.Add(this.tobiiCalibPlot);

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