EventStore.VSTools.ProjectionsProjectNode.DisableCmdInCurrentMode C# (CSharp) Method

DisableCmdInCurrentMode() protected method

protected DisableCmdInCurrentMode ( System.Guid commandGroup, uint command ) : bool
commandGroup System.Guid
command uint
return bool
        protected override bool DisableCmdInCurrentMode(Guid commandGroup, uint command)
        {
            if (commandGroup == VsMenus.guidStandardCommandSet97 || commandGroup == VsMenus.guidStandardCommandSet2K)
            {
                if (commandGroup == VsMenus.guidStandardCommandSet97)
                {
                    switch ((VsCommands)command)
                    {
                        default:
                            break;
                        case VsCommands.Start:
                        case VsCommands.StartNoDebug:
                        case VsCommands.StepInto:
                        case VsCommands.Restart:
                        case VsCommands.Resume:
                        case VsCommands.SetStartupProject:
                            return true;
                    }
                }
                else if (commandGroup == VsMenus.guidStandardCommandSet2K)
                {
                    switch ((VsCommands2K)command)
                    {
                        default:
                            break;
                        case VsCommands2K.PROJSTARTDEBUG:
                        case VsCommands2K.PROJSTEPINTO:
                        case VsCommands2K.ADDWEBREFERENCECTX:
                        case VsCommands2K.ADDWEBREFERENCE:
                        case VsCommands2K.ADDREFERENCE:
                        case VsCommands2K.SETASSTARTPAGE:
                            return true;
                    }
                }
            }
            return base.DisableCmdInCurrentMode(commandGroup, command);
        }