Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TrackingStatusGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.trackingStatus = ((TETControls.TrackBox.TrackBoxStatus)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
    /// <summary>
    /// Implementations of this method should initialize 
    /// the designer components for the custom hardware device tab page.
    /// </summary>
    protected override void InitializeStatusControls()
    {
      this.theEyeTribeCalibrationResultPanel = new TheEyeTribeCalibrationResultPanel();
      this.wpfContainer = new ElementHost();
      this.eyeTribeTrackStatus = new TrackBoxStatus();
      this.CalibrationResultPanel.Controls.Add(this.theEyeTribeCalibrationResultPanel);
      this.TrackStatusPanel.Controls.Add(this.wpfContainer);

      // elementHost1
      this.wpfContainer.Dock = DockStyle.Fill;
      this.wpfContainer.Location = new Point(0, 0);
      this.wpfContainer.Name = "wpfContainer";
      this.wpfContainer.Size = new Size(190, 40);
      this.wpfContainer.TabIndex = 0;
      this.wpfContainer.Text = "wpfContainer";
      this.wpfContainer.Child = this.eyeTribeTrackStatus;

      // theEyeTribeCalibrationResultPanel
      this.theEyeTribeCalibrationResultPanel.BackColor = Color.WhiteSmoke;
      this.theEyeTribeCalibrationResultPanel.Dock = DockStyle.Fill;
      this.theEyeTribeCalibrationResultPanel.Location = new Point(0, 0);
      this.theEyeTribeCalibrationResultPanel.Name = "theEyeTribeCalibrationResultPanel";
      this.theEyeTribeCalibrationResultPanel.Size = new Size(190, 42);
      this.theEyeTribeCalibrationResultPanel.TabIndex = 0;
      this.theEyeTribeCalibrationResultPanel.Text = "theEyeTribeCalibrationResultPanel1";
    }