예제 #1
0
        private void RegisterCommandMenuService()
        {
            IVsRegisterPriorityCommandTarget commandRegistry = GetService(typeof(SVsRegisterPriorityCommandTarget)) as IVsRegisterPriorityCommandTarget;

            _thirdPartyEditorCommands = new ClearableMenuCommandService(this);
            uint cookie = 0;

            commandRegistry.RegisterPriorityCommandTarget(0, _thirdPartyEditorCommands, out cookie);
        }
예제 #2
0
 private void RegisterCommandMenuService()
 {
     IVsRegisterPriorityCommandTarget commandRegistry = GetService(typeof (SVsRegisterPriorityCommandTarget)) as IVsRegisterPriorityCommandTarget;
     _thirdPartyEditorCommands = new ClearableMenuCommandService(this);
     uint cookie = 0;
     commandRegistry.RegisterPriorityCommandTarget(0, _thirdPartyEditorCommands, out cookie);
 }