Exemple #1
0
        /// <summary>
        /// This method initializes the designer components for the
        ///   calibration plot
        /// </summary>
        protected override void InitializeStatusControls()
        {
            if (this.smartEyeTrackStatus == null && this.smartEyeCalibPlot == null)
            {
                this.smartEyeTrackStatus = new SmartEyeTrackStatusControl();
                this.smartEyeCalibPlot   = new SmartEyeCalibrationResultPanel();

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

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

                try
                {
                    this.TrackStatusPanel.Controls.Add(this.smartEyeTrackStatus);
                    this.CalibrationResultPanel.Controls.Add(this.smartEyeCalibPlot);

                    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
    ///   calibration plot
    /// </summary>
    protected override void InitializeStatusControls()
    {
      if (this.smartEyeTrackStatus == null && this.smartEyeCalibPlot == null)
      {
        this.smartEyeTrackStatus = new SmartEyeTrackStatusControl();
        this.smartEyeCalibPlot = new SmartEyeCalibrationResultPanel();

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

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

        try
        {
          this.TrackStatusPanel.Controls.Add(this.smartEyeTrackStatus);
          this.CalibrationResultPanel.Controls.Add(this.smartEyeCalibPlot);

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