예제 #1
0
        /// <summary>
        /// Initializes the singleton instance of the command.
        /// </summary>
        /// <param name="package">Owner package, not null.</param>
        public static async Task InitializeAsync(AsyncPackage package, CommandController commandController)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken);

            OleMenuCommandService commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            Instance = new DiffSolutionExplorerFilesCommand(package, commandService, commandController);
        }
예제 #2
0
        public async Task InitializeAsync(AsyncPackage package)
        {
            await DiffOpenFilesCommand.InitializeAsync(package, this);

            await DiffSolutionExplorerFilesCommand.InitializeAsync(package, this);
        }