예제 #1
0
        protected override void Initialize()
        {
            base.Initialize();

            // Get and set all services
            DTE = (DTE2)GetService(typeof(SDTE));
            RunningDocumentTable = (IVsRunningDocumentTable)GetService(typeof(SVsRunningDocumentTable));
            VsSolution           = (IVsSolution)GetService(typeof(SVsSolution));

            var packageLoader = FactoryMethods.GetPackageLoader();

            packageLoader.AfterOpenSolution += PackageLoader_AfterOpenSolution;

            SettingsWindowCommand.Initialize(this);
        }
예제 #2
0
 /// <summary>
 /// Initializes the singleton instance of the command.
 /// </summary>
 /// <param name="package">Owner package, not null.</param>
 public static void Initialize(EntitasVsPackage package)
 {
     Instance = new SettingsWindowCommand(package);
 }