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); }
// 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); }
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; }
// 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; }