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