示例#1
0
        private void OnSelectDisplayItem(object sender, Shapes.DisplayItem displayItem)
        {
            Shapes.DisplayItemBaseControl setupControl = displayItem.Shape.GetSetupControl();

            if (setupControl != null)
            {
                propertiesForm.ShowSetupControl(setupControl);
            }
        }
示例#2
0
        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;
            }
        }