Пример #1
0
 /// <summary>
 /// Raises the <see cref="NodeMouseHover"/> event.
 /// </summary>
 /// <param name="e">The <see cref="NodeViewMouseHoverEventArgs"/> that contains the event data.</param>
 protected virtual void OnNodeMouseHover(NodeViewMouseHoverEventArgs e)
 {
     if (NodeMouseHover != null)
     {
         NodeMouseHover(this, e);
     }
 }
Пример #2
0
        /// <summary>
        /// Forwards the <see cref="NodeMouseHover"/> event.
        /// </summary>
        /// <param name="e">The <see cref="TreeNodeMouseHoverEventArgs"/> that contains the event data.</param>
        protected sealed override void OnNodeMouseHover(TreeNodeMouseHoverEventArgs e)
        {
            NodeViewMouseHoverEventArgs newArgs = new NodeViewMouseHoverEventArgs((Node)e.Node);

            OnNodeMouseHover(newArgs);

            base.OnNodeMouseHover(e);
        }