Beispiel #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();
        }
 public static void Initialize(Package package)
 {
     Instance = new MainWindowCommand(package);
 }