Exemple #1
0
        public void item_Click(Object sender, ToolStripItemClickedEventArgs e, MouseEventArgs ep, AlphaBlendTextBox Path, string dirPath, ListView list, ContextMenuStrip rightClickMenu)
        {
            switch (e.ClickedItem.Name.ToString())
            {
            case "Open":

                menu.openRightClick(Path, dirPath, list);
                break;

            case "Copy":

                menu.copyRightClick(Path, dirPath, list);
                break;

            case "Move":

                menu.moveRightClick(Path, dirPath, list);
                break;

            case "Delete":

                menu.deleteRightClick(dirPath, list);
                break;

            case "Properties":

                Property properties = new Property(menu.getPath(dirPath, list));
                properties.Show();
                break;

            case "Decompress":

                menu.decompress(dirPath, list);
                break;

            case "Encrypt":

                menu.encryptFile(dirPath, list);
                break;

            case "Decrypt":

                menu.decryptFile(dirPath, list);
                break;
            }
        }