示例#1
0
文件: TreeView.cs 项目: zyouhua/nvwa
 void _nodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     TreeNodeMouseClickEventParams treeNodeMouseClickEventParams_ = new TreeNodeMouseClickEventParams();
     treeNodeMouseClickEventParams_._setContain(mContain);
     treeNodeMouseClickEventParams_._setTreeView(this);
     treeNodeMouseClickEventParams_._setX(e.X);
     treeNodeMouseClickEventParams_._setY(e.Y);
     TreeNodeWidget treeNodeWidget_ = e.Node as TreeNodeWidget;
     ITreeNode treeNode_ = treeNodeWidget_._getTreeNode();
     treeNode_._treeNodeDoubleClick(treeNodeMouseClickEventParams_);
 }
示例#2
0
文件: TreeView.cs 项目: zyouhua/nvwa
 void _nodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     TreeNodeMouseClickEventParams treeNodeMouseClickEventParams_ = new TreeNodeMouseClickEventParams();
     treeNodeMouseClickEventParams_._setContain(mContain);
     treeNodeMouseClickEventParams_._setTreeView(this);
     treeNodeMouseClickEventParams_._setX(e.X);
     treeNodeMouseClickEventParams_._setY(e.Y);
     if (e.Button == MouseButtons.Left)
     {
         mTreeView.SelectedNode = e.Node;
         TreeNodeWidget treeNodeWidget_ = e.Node as TreeNodeWidget;
         ITreeNode treeNode_ = treeNodeWidget_._getTreeNode();
         treeNode_._treeNodeClick(treeNodeMouseClickEventParams_);
     }
     else if (e.Button == MouseButtons.Right)
     {
         mTreeView.SelectedNode = e.Node;
         TreeNodeWidget treeNodeWidget_ = e.Node as TreeNodeWidget;
         ITreeNode treeNode_ = treeNodeWidget_._getTreeNode();
         treeNode_._treeNodeRightClick(treeNodeMouseClickEventParams_);
     }
     else
     {
     }
 }