Example #1
0
        /// <summary>
        /// This method initializes the designer components for the
        /// alea interface tab page.
        /// </summary>
        protected override void InitializeStatusControls()
        {
            var resources = new ComponentResourceManager(typeof(RecordModule));

            try
            {
                this.aleaTrackStatus = new AxAleaStatusControl();
            }
            catch (NullReferenceException)
            {
                // occurs if ActiveX-Control was not registered by IntelliGaze
                this.aleaTrackStatus = null;
            }

            if (this.aleaTrackStatus != null)
            {
                this.TrackStatusPanel.SuspendLayout();

                ((ISupportInitialize)this.aleaTrackStatus).BeginInit();

                // AleaTrackStatus
                this.aleaTrackStatus.Dock     = DockStyle.Fill;
                this.aleaTrackStatus.Enabled  = true;
                this.aleaTrackStatus.Location = new Point(0, 0);
                this.aleaTrackStatus.Name     = "aleaTrackStatus";
                this.aleaTrackStatus.OcxState = (AxHost.State)resources.GetObject("aleaTrackStatus.OcxState");
                this.aleaTrackStatus.TabIndex = 0;

                try
                {
                    this.TrackStatusPanel.Controls.Add(this.aleaTrackStatus);
                }
                catch (COMException)
                {
                    this.TrackStatusPanel.Controls.Clear();
                    throw;
                }

                ((ISupportInitialize)this.aleaTrackStatus).EndInit();

                this.TrackStatusPanel.ResumeLayout(false);
            }
        }
Example #2
0
    /// <summary>
    /// This method initializes the designer components for the
    /// alea interface tab page.    
    /// </summary>
    protected override void InitializeStatusControls()
    {
      var resources = new ComponentResourceManager(typeof(RecordModule));

      try
      {
        this.aleaTrackStatus = new AxAleaStatusControl();
      }
      catch (NullReferenceException)
      {
        // occurs if ActiveX-Control was not registered by IntelliGaze
        this.aleaTrackStatus = null;
      }

      if (this.aleaTrackStatus != null)
      {
        this.TrackStatusPanel.SuspendLayout();

        ((ISupportInitialize)this.aleaTrackStatus).BeginInit();

        // AleaTrackStatus
        this.aleaTrackStatus.Dock = DockStyle.Fill;
        this.aleaTrackStatus.Enabled = true;
        this.aleaTrackStatus.Location = new Point(0, 0);
        this.aleaTrackStatus.Name = "aleaTrackStatus";
        this.aleaTrackStatus.OcxState = (AxHost.State)resources.GetObject("aleaTrackStatus.OcxState");
        this.aleaTrackStatus.TabIndex = 0;

        try
        {
          this.TrackStatusPanel.Controls.Add(this.aleaTrackStatus);
        }
        catch (COMException)
        {
          this.TrackStatusPanel.Controls.Clear();
          throw;
        }

        ((ISupportInitialize)this.aleaTrackStatus).EndInit();

        this.TrackStatusPanel.ResumeLayout(false);
      }
    }