Example #1
0
        int IVsSolutionEvents4.OnQueryChangeProjectParent(IVsHierarchy pHierarchy, IVsHierarchy pNewParentHier, ref int pfCancel)
        {
            IVsSolutionEvents4 hostService =
                (IVsSolutionEvents4)GetService(typeof(IHostService));

            return(hostService.OnQueryChangeProjectParent(pHierarchy, pNewParentHier, ref pfCancel));
        }
Example #2
0
        int IVsSolutionEvents4.OnAfterAsynchOpenProject(IVsHierarchy pHierarchy, int fAdded)
        {
            IVsSolutionEvents4 hostService =
                (IVsSolutionEvents4)GetService(typeof(IHostService));

            return(hostService.OnAfterAsynchOpenProject(pHierarchy, fAdded));
        }
Example #3
0
        int IVsSolutionEvents4.OnAfterRenameProject(IVsHierarchy pHierarchy)
        {
            guidanceNavigatorManager.OnSolutionExplorerChanged();

            IVsSolutionEvents4 hostService =
                (IVsSolutionEvents4)GetService(typeof(IHostService));

            return(hostService.OnAfterRenameProject(pHierarchy));
        }
Example #4
0
        int IVsSolutionEvents4.OnAfterChangeProjectParent(IVsHierarchy pHierarchy)
        {
            // REVIEW (v-vaprea): this doesn't look good -- the code is asking for the IHostService only to then
            // cast the returned object to an IVsSolutionEvents4 interface thus assuming that the type implementing
            // IHostService also implements this other interface... not nice at all... (the same 'pattern' is used on other
            // methods in this class too.
            IVsSolutionEvents4 hostService =
                (IVsSolutionEvents4)GetService(typeof(IHostService));

            return(hostService.OnAfterChangeProjectParent(pHierarchy));
        }