Esempio n. 1
0
 /// <summary>
 /// Handles when an event of a node is selected.
 /// </summary>
 /// <param name="node">The node whose event is selected.</param>
 private void control_ClickEvent(NodeViewData node)
 {
     // if there is no subitem selected, use the properties of the node
     if (node.SelectedSubItem == null || node.SelectedSubItem.SelectableObject == null)
     {
         PropertiesDock.InspectObject(node.Node);
     }
     // publish the properties of the subitem's selection object
     else
     {
         PropertiesDock.InspectObject(node.SelectedSubItem.SelectableObject);
     }
 }
Esempio n. 2
0
        void editor_ValueWasChanged(DesignerPropertyInfo property)
        {
            string text = _selectedObject == null ? "Properties" : "Properties of " + _selectedObject.ToString();

            Text    = text;
            TabText = text;

            // if we change a DesignerNodeProperty other properties of that object might be affected
            if (property.Attribute is DesignerNodeProperty)
            {
                PropertiesDock.UpdatePropertyGrids();
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Handles when a node is clicked.
 /// </summary>
 /// <param name="node">The node that was clicked.</param>
 private void control_ClickNode(NodeViewData node)
 {
     PropertiesDock.InspectObject(node == null ? null : node.Node);
 }
Esempio n. 4
0
		private void propertiesButton_Click(object sender, EventArgs e)
		{
			PropertiesDock dock= new PropertiesDock();
			dock.SelectedObject= _selectedNode.Node;
			dock.Show(MainWindow.DockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Float);
		}