public void Dispose() { bool isRegistered = FileShellExtension.IsRegistered(FileType, KeyName, false); if (isRegistered) { // unregister the context menu FileShellExtension.Unregister(FileType, KeyName, false); } }
public SharpScriptService() { bool isRegistered = FileShellExtension.IsRegistered(FileType, KeyName, false); if (isRegistered) { return; } string menuCommand = " "; // register the context menu FileShellExtension.Register(FileType, KeyName, MenuText, menuCommand, false); }