Пример #1
0
        protected Command(int commandId, VisualStudioPackage package)
        {
            if (package == null)
            {
                throw new ArgumentNullException(nameof(package));
            }

            CommandId       = commandId;
            Package         = package;
            ServiceProvider = package;

            MenuCommandService = ServiceProvider.GetMenuCommandService();
        }
Пример #2
0
 protected SingleCommand(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
     _command = new OleMenuCommand(InvokeHandler, new CommandID(CommandSet.Guid, commandId));
     _command.BeforeQueryStatus += CommandOnBeforeQueryStatus;
     MenuCommandService.AddCommand(_command);
 }
Пример #3
0
 private EditProjectFile(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
 }
Пример #4
0
 public static void Initialize(int commandId, VisualStudioPackage package)
 {
     Instance = new EditProjectFile(commandId, package);
 }
Пример #5
0
 private BreakAllInCurrentDocument(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
 }
Пример #6
0
 public static void Initialize(int commandId, VisualStudioPackage package)
 {
     Instance = new BreakAllInCurrentDocument(commandId, package);
 }
Пример #7
0
 public static void Initialize(int commandId, VisualStudioPackage package)
 {
     Instance = new LocateInSolutionExplorer(commandId, package);
 }
Пример #8
0
 private LocateInSolutionExplorer(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
 }
Пример #9
0
 private EditSolutionFile(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
 }
Пример #10
0
 private LocateInSourceControlExplorer(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
 }
Пример #11
0
 public static void Initialize(int commandId, VisualStudioPackage package)
 {
     Instance = new CompareFiles(commandId, package);
 }
Пример #12
0
 private CompareFiles(int commandId, VisualStudioPackage package) : base(commandId, package)
 {
 }