コード例 #1
0
        private AimDetailsControl AddDetailsControl()
        {
            var aimShortDetailsControl = new AimDetailsControl();

            aimShortDetailsControl.Anchor                    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            aimShortDetailsControl.AutoSize                  = true;
            aimShortDetailsControl.AutoSizeMode              = AutoSizeMode.GrowAndShrink;
            aimShortDetailsControl.BackColor                 = SystemColors.Control;
            aimShortDetailsControl.Location                  = new Point(0, 0);
            aimShortDetailsControl.ShowAimAnnotationClicked += OnShowAimAnnotationClicked;

            return(aimShortDetailsControl);
        }
コード例 #2
0
        // Adds control at the end of the main panel
        private AimDetailsControl AddDetailsControl()
        {
            AimDetailsControl aimShortDetailsControl = new AimDetailsControl();

            aimShortDetailsControl.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            aimShortDetailsControl.AutoSize     = true;
            aimShortDetailsControl.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            aimShortDetailsControl.BackColor    = SystemColors.Control;
            aimShortDetailsControl.Location     = new Point(0, MaxPositionY);
            aimShortDetailsControl.Width        = _mainPanel.ClientSize.Width;
            //	aimShortDetailsControl.TabIndex = 0;
            //	aimShortDetailsControl.Name = "_aimShortDetailsControl1";
            aimShortDetailsControl.ShowAimAnnotationClicked += OnShowAimAnnotationClicked;

            _mainPanel.Controls.Add(aimShortDetailsControl);

            return(aimShortDetailsControl);
        }
コード例 #3
0
        private AimDetailsControl AddDetailsControl()
        {
            var aimShortDetailsControl = new AimDetailsControl();
            aimShortDetailsControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            aimShortDetailsControl.AutoSize = true;
            aimShortDetailsControl.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            aimShortDetailsControl.BackColor = SystemColors.Control;
            aimShortDetailsControl.Location = new Point(0, 0);
            aimShortDetailsControl.ShowAimAnnotationClicked += OnShowAimAnnotationClicked;

            return aimShortDetailsControl;
        }
コード例 #4
0
		// Adds control at the end of the main panel
		private AimDetailsControl AddDetailsControl()
		{
			AimDetailsControl aimShortDetailsControl = new AimDetailsControl();
			aimShortDetailsControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
			aimShortDetailsControl.AutoSize = true;
			aimShortDetailsControl.AutoSizeMode = AutoSizeMode.GrowAndShrink;
			aimShortDetailsControl.BackColor = SystemColors.Control;
			aimShortDetailsControl.Location = new Point(0, MaxPositionY);
			aimShortDetailsControl.Width = _mainPanel.ClientSize.Width;
			//	aimShortDetailsControl.TabIndex = 0;
			//	aimShortDetailsControl.Name = "_aimShortDetailsControl1";
			aimShortDetailsControl.ShowAimAnnotationClicked += OnShowAimAnnotationClicked;

			_mainPanel.Controls.Add(aimShortDetailsControl);

			return aimShortDetailsControl;
		}