예제 #1
0
        /// <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);
            }
        }
예제 #2
0
        protected virtual void OnNodeAdded(TreeViewEventArgs e)
        {
            e.Node.Checked = e.Node.Checked;
            NodeAddedHandler handler = NodeAdded;

            if (handler != null)
            {
                handler(e);
            }
        }