Example #1
0
        private void TreeView1_MouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            String tag = e.Node.Tag as String;

            if (tag == null || renderScene == null)
            {
                return;
            }
            renderScene.selectItemByUniqueName(tag);

            if (e.Button == MouseButtons.Right)
            {
                //ToolStripMenuItem[] formMenuItemList = new ToolStripMenuItem[1];
                //formMenuItemList[0] = new ToolStripMenuItem("打开所在文件夹", null, new EventHandler(this.openInFloder));
                //formMenuItemList[0].Tag = e.Node;
                //ContextMenuStrip formMenu = new ContextMenuStrip();
                //formMenu.Items.AddRange(formMenuItemList);
                //this.ContextMenuStrip = formMenu;
            }
            else
            {
            }
        }