/// <summary> /// Raises the <see cref="E:System.Windows.Forms.Control.DoubleClick"></see> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs"></see> that contains the event data.</param> protected override void OnDoubleClick(EventArgs e) { base.OnDoubleClick(e); NuGenTreeNode treeNode = this.GetNodeAt(this.PointToClient(Cursor.Position)); if (treeNode is NuGenCodeTaskTreeNode) { if (this.CodeTasks.ContainsKey(treeNode)) { TaskItem taskItemToNavigate = this.CodeTasks[treeNode]; if (taskItemToNavigate != null) { taskItemToNavigate.Navigate(); } } } }
public void Navigate() { _item.Navigate(); }