Esempio n. 1
0
        public int CreateToolWindow(uint grfCTW, uint dwToolWindowId, object punkTool, ref Guid rclsidTool, ref Guid rguidPersistenceSlot, ref Guid rguidAutoActivate, OLE.Interop.IServiceProvider psp, string pszCaption, int[] pfDefaultPosition, out IVsWindowFrame ppWindowFrame)
        {
            var mock = new VsWindowFrameMock(pszCaption);

            _frames[rguidPersistenceSlot] = mock;
            ppWindowFrame = mock;
            return(VSConstants.S_OK);
        }
Esempio n. 2
0
 public int CreateToolWindow(uint grfCTW, uint dwToolWindowId, object punkTool, ref Guid rclsidTool, ref Guid rguidPersistenceSlot, ref Guid rguidAutoActivate, OLE.Interop.IServiceProvider psp, string pszCaption, int[] pfDefaultPosition, out IVsWindowFrame ppWindowFrame) {
     var mock = new VsWindowFrameMock(pszCaption);
     _frames[rguidPersistenceSlot] = mock;
     ppWindowFrame = mock;
     return VSConstants.S_OK;
 }