protected Command(int commandId, VisualStudioPackage package) { if (package == null) { throw new ArgumentNullException(nameof(package)); } CommandId = commandId; Package = package; ServiceProvider = package; MenuCommandService = ServiceProvider.GetMenuCommandService(); }
protected SingleCommand(int commandId, VisualStudioPackage package) : base(commandId, package) { _command = new OleMenuCommand(InvokeHandler, new CommandID(CommandSet.Guid, commandId)); _command.BeforeQueryStatus += CommandOnBeforeQueryStatus; MenuCommandService.AddCommand(_command); }
private EditProjectFile(int commandId, VisualStudioPackage package) : base(commandId, package) { }
public static void Initialize(int commandId, VisualStudioPackage package) { Instance = new EditProjectFile(commandId, package); }
private BreakAllInCurrentDocument(int commandId, VisualStudioPackage package) : base(commandId, package) { }
public static void Initialize(int commandId, VisualStudioPackage package) { Instance = new BreakAllInCurrentDocument(commandId, package); }
public static void Initialize(int commandId, VisualStudioPackage package) { Instance = new LocateInSolutionExplorer(commandId, package); }
private LocateInSolutionExplorer(int commandId, VisualStudioPackage package) : base(commandId, package) { }
private EditSolutionFile(int commandId, VisualStudioPackage package) : base(commandId, package) { }
private LocateInSourceControlExplorer(int commandId, VisualStudioPackage package) : base(commandId, package) { }
public static void Initialize(int commandId, VisualStudioPackage package) { Instance = new CompareFiles(commandId, package); }
private CompareFiles(int commandId, VisualStudioPackage package) : base(commandId, package) { }