Exemplo n.º 1
0
        private void keypressed(object sender, KeyEventArgs e, AlphaBlendTextBox path, string destination, ListView listView)
        {
            menu.copy(sender, e, destination, startPathL, listView);
            menu.move(sender, e, destination, startPathL, listView);
            menu.delete(sender, e, startPathL, listView);
            menu.compress(sender, e, startPathL, listView);
            if (e.KeyCode == Keys.Enter)
            {
                menu.openRightClick(path, startPathL, listView);
            }
            if (e.KeyCode == Keys.F3)
            {
                SearchForm searching = new SearchForm(startPathL);
                searching.Show();
            }

            if (e.KeyCode == Keys.F4)
            {
                menu.getPath(startPathL, listView);
                Rename rename = new Rename(menu.getPath(startPathL, listView));
                rename.Show();
            }

            if (e.KeyCode == Keys.F7)
            {
                NewDirectory newdir = new NewDirectory(startPathL);
                newdir.Show();
            }
        }