/// <include file='doc\CodeWindowManager.uex' path='docs/doc[@for="TypeAndMemberDropdownBars.SetDropdownBar"]/*' />
 public override int SetDropdownBar(IVsDropdownBar bar)
 {
     _dropDownBar = bar;
     return NativeMethods.S_OK;
 }
Пример #2
0
 /// <summary>
 /// Called by VS to provide us with the drop down bar.  We can call back
 /// on the drop down bar to force VS to refresh the combo box or change
 /// the current selection.
 /// </summary>
 public int SetDropdownBar(IVsDropdownBar pDropdownBar)
 {
     _dropDownBar = pDropdownBar;
     return VSConstants.S_OK;
 }
        public int SetDropdownBar(IVsDropdownBar pDropdownBar)
        {
            this.DropdownBar = pDropdownBar;

            if (pDropdownBar == null && _imageList != null)
            {
                _imageList.Dispose();
                _imageList = null;
            }

            return VSConstants.S_OK;
        }
Пример #4
0
 /// <summary>
 /// Called by VS to provide us with the drop down bar.  We can call back
 /// on the drop down bar to force VS to refresh the combo box or change
 /// the current selection.
 /// </summary>
 public int SetDropdownBar(IVsDropdownBar pDropdownBar) {
     _dropDownBar = pDropdownBar;
     if (_dropDownBar != null) {
         CaretPositionChanged(this, new CaretPositionChangedEventArgs(null, _textView.Caret.Position, _textView.Caret.Position));
     }
     
     return VSConstants.S_OK;
 }
        int IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar pDropdownBar) {

            _dropdownBar = pDropdownBar;

            UpdateNavigationItems();

            return VSConstants.S_OK;
        }
Пример #6
0
 /// <include file='doc\CodeWindowManager.uex' path='docs/doc[@for="TypeAndMemberDropdownBars.SetDropdownBar"]/*' />
 public virtual int SetDropdownBar(IVsDropdownBar bar)
 {
     this.dropDownBar = bar;
     return NativeMethods.S_OK;
 }
Пример #7
0
        int IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar pDropdownBar)
        {
            _dropdownBar = pDropdownBar;

            return VSConstants.S_OK;
        }
 public int GetDropdownBar(out IVsDropdownBar ppDropdownBar)
 {
     return DropdownBarManager.GetDropdownBar(out ppDropdownBar);
 }
Пример #9
0
 public int SetDropdownBar(IVsDropdownBar pDropdownBar)
 {
     _dropdownBar = pDropdownBar;
     return(VSConstants.S_OK);
 }
Пример #10
0
 int IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar pDropdownBar)
 {
     throw new NotImplementedException();
 }
Пример #11
0
        int IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar pDropdownBar)
        {
            _dropdownBar = pDropdownBar;

            return(VSConstants.S_OK);
        }
Пример #12
0
 private static IVsDropdownBarClient GetDropdownBarClient(IVsDropdownBar dropdownBar)
 {
     ErrorHandler.ThrowOnFailure(dropdownBar.GetClient(out var dropdownBarClient));
     return(dropdownBarClient);
 }
Пример #13
0
 public int SetDropdownBar(IVsDropdownBar bar)
 {
     this.dropDownBar = bar;
     return(NativeMethods.S_OK);
 }
Пример #14
0
 int IVsDropdownBarManager.GetDropdownBar(out IVsDropdownBar ppDropdownBar) => ((IVsDropdownBarManager)_editorWindow).GetDropdownBar(out ppDropdownBar);
 static IVsDropdownBarClient GetDropdownBarClient(IVsDropdownBar dropdownBar) {
     IVsDropdownBarClient dropdownBarClient;
     ErrorHandler.ThrowOnFailure(dropdownBar.GetClient(out dropdownBarClient));
     return dropdownBarClient;
 }