Ejemplo n.º 1
0
 public static SolutionEventHandlers Inst(DTE dte, DTE2 dte2)
 {
     if (_inst == null)
     {
         _inst = new SolutionEventHandlers(dte, dte2);
     }
     return(_inst);
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo 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);
            }
        }