コード例 #1
0
 private void OnSelectDisplayItem(object sender, Shapes.DisplayItem displayItem)
 {
     if (propertiesForm.SetupPreviewShape() != displayItem.Shape)
     {
         DisplayItemBaseControl setupControl = displayItem.Shape.GetSetupControl();
         elementsForm.ClearSelectedNodes();
         if (setupControl != null)
         {
             propertiesForm.ShowSetupControl(setupControl);
         }
     }
 }
コード例 #2
0
        public void ShowSetupControl(DisplayItemBaseControl setupControl)
        {
            if (_setupControl != null)
            {
                _setupControl.PropertyEdited -= SetupControlPropertyEdited;
            }

            _setupControl = setupControl;
            Controls.Clear();
            if (setupControl != null)
            {
                setupControl.PropertyEdited += SetupControlPropertyEdited;
                Controls.Add(setupControl);
                setupControl.Dock = DockStyle.Fill;
                Text = setupControl.Title;
            }
            else
            {
                Text = @"Properties";
            }
        }
コード例 #3
0
 public void ClearSetupControl()
 {
     Controls.Clear();
     Text          = @"Properties";
     _setupControl = null;
 }