public int AdviseSelectionEvents( IVsSelectionEvents pSink, [ComAliasName("Microsoft.VisualStudio.Shell.Interop.VSCOOKIE")]out uint pdwCookie) { _lastSelectionEventsCookie++; pdwCookie = _lastSelectionEventsCookie; _listeners.Add(pdwCookie, pSink); return VSConstants.S_OK; }
public int AdviseSelectionEvents( IVsSelectionEvents pSink, [ComAliasName("Microsoft.VisualStudio.Shell.Interop.VSCOOKIE")] out uint pdwCookie) { _lastSelectionEventsCookie++; pdwCookie = _lastSelectionEventsCookie; _listeners.Add(pdwCookie, pSink); return(VSConstants.S_OK); }
int IVsMonitorSelection.AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) { throw new Exception("The method or operation is not implemented."); }
int IVsMonitorSelection.AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) { pdwCookie = (uint)++allocatedSynks; synks.Add(pdwCookie, pSink); return(VSConstants.S_OK); }
int IVsMonitorSelection.AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) { pdwCookie = (uint) ++allocatedSynks; synks.Add(pdwCookie, pSink); return VSConstants.S_OK; }
private void RegisterSelectionEvents(IVsSelectionEvents selectionEvents) { IVsMonitorSelection monitorSelection = (IVsMonitorSelection)this.GetService(typeof(SVsShellMonitorSelection)); uint cookie; int result = monitorSelection.AdviseSelectionEvents(selectionEvents, out cookie); }
public int AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) { return(_selection.AdviseSelectionEvents(pSink, out pdwCookie)); }
private void RegisterSelectionEvents(IVsSelectionEvents selectionEvents) { IVsMonitorSelection monitorSelection = (IVsMonitorSelection)this.GetService(typeof(SVsShellMonitorSelection)); uint cookie; int result = monitorSelection.AdviseSelectionEvents(selectionEvents, out cookie); }
public int AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) { pdwCookie = 0; return 0; }
public int AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) { pdwCookie = 0; return(0); }