コード例 #1
0
ファイル: DesignerForm.cs プロジェクト: outrera/game-creator
        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            IResourceView irv = (IResourceView)e.Node.Tag;

            if (e.Button == MouseButtons.Right)
            {
                treeView1.SelectedNode = e.Node;
                ResourceContextMenuStrip rc = new ResourceContextMenuStrip(irv);
                rc.Show(treeView1, e.Location, ToolStripDropDownDirection.Default);
            }
        }
コード例 #2
0
 private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     IResourceView irv = (IResourceView)e.Node.Tag;
     if (e.Button == MouseButtons.Right)
     {
         treeView1.SelectedNode = e.Node;
         ResourceContextMenuStrip rc = new ResourceContextMenuStrip(irv);
         rc.Show(treeView1, e.Location, ToolStripDropDownDirection.Default);
     }
 }