Exemplo n.º 1
0
        protected override void Initialize()
        {
            _solutionService = GetService(typeof(SVsSolution)) as IVsSolution;

            var dte = GetService(typeof(DTE)) as DTE2;

            if (_solutionService != null)
            {
                Common.Instance.Package    = this;
                Common.Instance.Solution   = _solutionService;
                Common.Instance.Dte2Object = dte;
            }

            MainWindowCommand.Initialize(this);
            base.Initialize();
        }
Exemplo n.º 2
0
 public static void Initialize(Package package)
 {
     Instance = new MainWindowCommand(package);
 }