コード例 #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
     {
     }
 }