protected AbstractSwitchBooleanOptionCommand(IGoogleTestExtensionOptionsPage package, int commandId) { Package = package ?? throw new ArgumentNullException(nameof(package)); if (ServiceProvider.GetService(typeof(IMenuCommandService)) is OleMenuCommandService commandService) { var finalCommandId = new CommandID(CommandSet, commandId); var command = new OleMenuCommand(OnCommandInvoked, finalCommandId); command.BeforeQueryStatus += OnBeforeQueryStatus; commandService.AddCommand(command); } }
protected AbstractSwitchBooleanOptionCommand(IGoogleTestExtensionOptionsPage package, int commandId) { if (package == null) throw new ArgumentNullException(nameof(package)); Package = package; OleMenuCommandService commandService = ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService; if (commandService != null) { var finalCommandId = new CommandID(CommandSet, commandId); var command = new OleMenuCommand(OnCommandInvoked, finalCommandId); command.BeforeQueryStatus += OnBeforeQueryStatus; commandService.AddCommand(command); } }
private SwitchPrintTestOutputOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0103) {}
internal static void Initialize(IGoogleTestExtensionOptionsPage package) { Instance = new SwitchPrintTestOutputOptionCommand(package); }
private SwitchCatchExceptionsOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0100) { }
internal static void Initialize(IGoogleTestExtensionOptionsPage package) { Instance = new SwitchCatchExceptionsOptionCommand(package); }
private SwitchParallelExecutionOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0102) { }
private SwitchBreakOnFailureOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0101) { }
private SwitchParallelExecutionOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0102) {}
internal static void Initialize(IGoogleTestExtensionOptionsPage package) { Instance = new SwitchParallelExecutionOptionCommand(package); }
private SwitchBreakOnFailureOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0101) {}
internal static void Initialize(IGoogleTestExtensionOptionsPage package) { Instance = new SwitchBreakOnFailureOptionCommand(package); }
private SwitchPrintTestOutputOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0103) { }
private SwitchCatchExceptionsOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0100) {}