Ejemplo n.º 1
0
        private void registerContextHandlerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string menuCommand = string.Format("\"{0}\" \"%L\"",
                                               Application.ExecutablePath);

            FileShellExtension.Register("dllfile", "OleWoo Context Menu",
                                        "Open with OleWoo", menuCommand);
        }
Ejemplo n.º 2
0
 private void unregisterContextHandlerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FileShellExtension.Unregister("dllfile", "OleWoo Context Menu");
 }