Esempio n. 1
0
 /// <summary>
 /// Raises the <see cref="NodeMouseDoubleClick"/> event.
 /// </summary>
 /// <param name="e">A <see cref="NodeViewMouseClickEventArgs"/> that contains the event data.</param>
 protected virtual void OnNodeMouseDoubleClick(NodeViewMouseClickEventArgs e)
 {
     if (NodeMouseDoubleClick != null)
     {
         NodeMouseDoubleClick(this, e);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Forwards the <see cref="NodeMouseDoubleClick"/> event.
        /// </summary>
        /// <param name="e">A <see cref="TreeNodeMouseClickEventArgs"/> that contains the event data.</param>
        protected sealed override void OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs e)
        {
            NodeViewMouseClickEventArgs newArgs = new NodeViewMouseClickEventArgs((Node)e.Node, e.Button, e.Clicks, e.X,
                                                                                  e.Y);

            OnNodeMouseDoubleClick(newArgs);

            base.OnNodeMouseDoubleClick(e);
        }