Esempio n. 1
0
 public static SolutionEventHandlers Inst(DTE dte, DTE2 dte2)
 {
     if (_inst == null)
     {
         _inst = new SolutionEventHandlers(dte, dte2);
     }
     return(_inst);
 }
        private bool zombieProofInitialization()
        {
            dte = GetService(typeof(SDTE)) as DTE;
            DTE2 dte2 = Package.GetGlobalService(typeof(DTE)) as DTE2;

            if (dte != null && dte2 != null)
            {
                qfRoot = SolutionEventHandlers.Inst(dte, dte2);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 3
0
        private bool zombieProofInitialization()
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            dte = GetService(typeof(SDTE)) as DTE;
            DTE2 dte2 = GetService(typeof(EnvDTE.DTE)) as EnvDTE80.DTE2;//Package.GetGlobalService(typeof(DTE)) as DTE2;

            if (dte != null && dte2 != null)
            {
                qfRoot = SolutionEventHandlers.Inst(dte, dte2);
                return(true);
            }
            else
            {
                return(false);
            }
        }