예제 #1
0
        public void ShowContextMenu(Point cursorPoint)
        {
            AndreasJohansson.Win32.Shell.ShellContextMenu scm = new AndreasJohansson.Win32.Shell.ShellContextMenu();
            List <FileInfo> files = new List <FileInfo>();

            foreach (IBrowserItem item in getComponent <IBrowser>().CurSelItems)
            {
                FileInfo file = new FileInfo(item.FullPath);
                files.Add(file);
            }

            scm.ShowContextMenu(m_windowhandle, files.ToArray(), cursorPoint);
        }
예제 #2
0
        public void ShowContextMenu(Point cursorPoint)
        {
            AndreasJohansson.Win32.Shell.ShellContextMenu scm = new AndreasJohansson.Win32.Shell.ShellContextMenu();
            List<FileInfo> files = new List<FileInfo>();

            foreach (IBrowserItem item in Browser.CurSelItems)
            {
                FileInfo file = new FileInfo(item.FullPath);
                files.Add(file);
            }

            scm.ShowContextMenu(Program.form.Handle, files.ToArray(), cursorPoint);
        }