Exemplo n.º 1
0
        /// <summary>
        /// Initializes the singleton instance of the command.
        /// </summary>
        /// <param name="package">Owner package, not null.</param>
        public static void Initialize(UndoCloseDocumentPackage package)
        {
            OleMenuCommandService commandService = package.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            IVsUIShell            uiShell        = package.GetService(typeof(SVsUIShell)) as IVsUIShell;
            DTE2 dte = package.GetService(typeof(DTE)) as DTE2;

            Instance = new UndoCloseDocument(package, commandService, uiShell, dte);
        }