private void OnSelectDisplayItem(object sender, Shapes.DisplayItem displayItem) { Shapes.DisplayItemBaseControl setupControl = displayItem.Shape.GetSetupControl(); if (setupControl != null) { propertiesForm.ShowSetupControl(setupControl); } }
public void ShowSetupControl(PreviewBaseShape shape) { panelProperties.Controls.Clear(); DisplayItemBaseControl setupControl = shape.GetSetupControl(); if (setupControl != null) { panelProperties.Controls.Add(setupControl); //setupControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom; setupControl.Dock = DockStyle.Fill; } }