/// <summary> /// Fires an OnNodeAdded event. /// </summary> /// <param name="node">The added node.</param> public void NodeAdded(INode node) { NodeAddedHandler nodeAdded = OnNodeAdded; if (nodeAdded != null) { nodeAdded(node); } }
protected virtual void OnNodeAdded(TreeViewEventArgs e) { e.Node.Checked = e.Node.Checked; NodeAddedHandler handler = NodeAdded; if (handler != null) { handler(e); } }