Пример #1
0
        private ShellCommandTarget(IMenuCommandService commandService, IOmniBoxUIService omniBoxBroker)
        {
            this.InvokeSearchCommand = new MenuCommand(this.OnInvokeSearchCommand, InvokeSearchCommandId);
            commandService.AddCommand(this.InvokeSearchCommand);

            this.omniBoxBroker = (OmniBoxBroker)omniBoxBroker;
        }
Пример #2
0
 public TextViewCreationListener(
     IVsEditorAdaptersFactoryService adaptersFactoryService,
     IOmniBoxUIService omniBoxBroker)
 {
     this.adaptersFactoryService = adaptersFactoryService
                                   ?? throw new ArgumentNullException(nameof(adaptersFactoryService));
     this.omniBoxBroker = omniBoxBroker
                          ?? throw new ArgumentNullException(nameof(omniBoxBroker));
 }
Пример #3
0
        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);
        }