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); }
private void unregisterContextHandlerToolStripMenuItem_Click(object sender, EventArgs e) { FileShellExtension.Unregister("dllfile", "OleWoo Context Menu"); }