public void ReactToRightClick(System.Windows.Forms.TreeNode rightClickedTreeNode, System.Windows.Forms.ContextMenuStrip menuToModify)
 {
     if (!rightClickedTreeNode.IsReferencedFile() ||
         FileManager.GetExtension(((ReferencedFileSave) rightClickedTreeNode.Tag).Name) != "scnx") return;
     menuToModify.Items.Add("-");
     menuToModify.Items.Add("Open with Sprite Editor").Click += OnOpenWithSpriteEditorClick;
     menuToModify.Items.Add("Open with Tile Editor").Click += OnOpenWithTileEditorClick;
 }
コード例 #2
0
        public void ReactToRightClick(System.Windows.Forms.TreeNode rightClickedTreeNode, System.Windows.Forms.ContextMenuStrip menuToModify)
        {
            if (rightClickedTreeNode.IsReferencedFile())
            {
                ReferencedFileSave rfs = rightClickedTreeNode.Tag as ReferencedFileSave;
                mLastFileName = ProjectManager.MakeAbsolute(rfs.Name);

                menuToModify.Items.Add("View Referenced Files").Click += new EventHandler(OnViewReferencedFilesClick);
            }
        }