コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 int IVsMonitorSelection.AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie)
 {
     throw new Exception("The method or operation is not implemented.");
 }
コード例 #4
0
 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;
 }
コード例 #6
0
 private void RegisterSelectionEvents(IVsSelectionEvents selectionEvents)
 {
     IVsMonitorSelection monitorSelection = (IVsMonitorSelection)this.GetService(typeof(SVsShellMonitorSelection));
     uint cookie;
     int  result = monitorSelection.AdviseSelectionEvents(selectionEvents, out cookie);
 }
コード例 #7
0
 public int AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie)
 {
     return(_selection.AdviseSelectionEvents(pSink, out pdwCookie));
 }
コード例 #8
0
 private void RegisterSelectionEvents(IVsSelectionEvents selectionEvents)
 {
     IVsMonitorSelection monitorSelection = (IVsMonitorSelection)this.GetService(typeof(SVsShellMonitorSelection));
     uint cookie;
     int result = monitorSelection.AdviseSelectionEvents(selectionEvents, out cookie);
 }
コード例 #9
0
ファイル: Stub Services.cs プロジェクト: SLaks/VSEmbed
		public int AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie) {
			pdwCookie = 0;
			return 0;
		}
コード例 #10
0
 public int AdviseSelectionEvents(IVsSelectionEvents pSink, out uint pdwCookie)
 {
     pdwCookie = 0;
     return(0);
 }