예제 #1
0
 public static SolutionEventHandlers Inst(DTE dte, DTE2 dte2)
 {
     if (_inst == null)
     {
         _inst = new SolutionEventHandlers(dte, dte2);
     }
     return(_inst);
 }
예제 #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);
            }
        }
예제 #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);
            }
        }