Пример #1
0
        int IVsSolutionLoadEvents.OnQueryBackgroundLoadProjectBatch(out bool pfShouldDelayLoadToNextIdle)
        {
            IVsSolutionLoadEvents hostService =
                (IVsSolutionLoadEvents)GetService(typeof(IHostService));

            return(hostService.OnQueryBackgroundLoadProjectBatch(out pfShouldDelayLoadToNextIdle));
        }
Пример #2
0
        int IVsSolutionLoadEvents.OnBeforeOpenSolution(string pszSolutionFilename)
        {
            IVsSolutionLoadEvents hostService =
                (IVsSolutionLoadEvents)GetService(typeof(IHostService));

            return(hostService.OnBeforeOpenSolution(pszSolutionFilename));
        }
Пример #3
0
        int IVsSolutionLoadEvents.OnBeforeBackgroundSolutionLoadBegins()
        {
            IVsSolutionLoadEvents hostService =
                (IVsSolutionLoadEvents)GetService(typeof(IHostService));

            return(hostService.OnBeforeBackgroundSolutionLoadBegins());
        }
Пример #4
0
        int IVsSolutionLoadEvents.OnBeforeLoadProjectBatch(bool fIsBackgroundIdleBatch)
        {
            IVsSolutionLoadEvents hostService =
                (IVsSolutionLoadEvents)GetService(typeof(IHostService));

            return(hostService.OnBeforeLoadProjectBatch(fIsBackgroundIdleBatch));
        }
Пример #5
0
        int IVsSolutionLoadEvents.OnAfterBackgroundSolutionLoadComplete()
        {
            if (guidanceNavigatorManager == null)
            {
                guidanceNavigatorManager = new GuidanceNavigatorManager(this as System.IServiceProvider);
            }

            IRecipeManagerService rms = (IRecipeManagerService)GetService(typeof(IRecipeManagerService));

            rms.EnabledPackage += new PackageEventHandler(OnEnabledPackage);

            IVsSolutionLoadEvents hostService =
                (IVsSolutionLoadEvents)GetService(typeof(IHostService));
            int result = hostService.OnAfterBackgroundSolutionLoadComplete();

            isOpeningSolution = false;
            return(result);
        }