private ShellCommandTarget(IMenuCommandService commandService, IOmniBoxUIService omniBoxBroker) { this.InvokeSearchCommand = new MenuCommand(this.OnInvokeSearchCommand, InvokeSearchCommandId); commandService.AddCommand(this.InvokeSearchCommand); this.omniBoxBroker = (OmniBoxBroker)omniBoxBroker; }
public TextViewCreationListener( IVsEditorAdaptersFactoryService adaptersFactoryService, IOmniBoxUIService omniBoxBroker) { this.adaptersFactoryService = adaptersFactoryService ?? throw new ArgumentNullException(nameof(adaptersFactoryService)); this.omniBoxBroker = omniBoxBroker ?? throw new ArgumentNullException(nameof(omniBoxBroker)); }
public OmniBoxViewModel(IOmniBoxUIService broker) { this.broker = broker ?? throw new ArgumentNullException(nameof(broker)); // Initialize commands. this.DismissCommand = new DismissCommand(this); this.DownCommand = new DownCommand(this); this.InvokeCommand = new InvokeCommand(this); this.UpCommand = new UpCommand(this); }