Ejemplo n.º 1
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);
            }
        }
Ejemplo n.º 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);
     }
 }