Пример #1
0
        public static async Tasks.Task InitializeAsync(AsyncPackage package)
        {
            var commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            var dte = await package.GetServiceAsync(typeof(DTE)) as DTE2;

            Instance = new ToggleCustomTool(package, commandService, dte);
        }
        protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync();

            Options = (OptionsDialogPage)GetDialogPage(typeof(OptionsDialogPage));

            await ToggleCustomTool.InitializeAsync(this);
        }
        protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            Options = (Options)GetDialogPage(typeof(Options));

            await ToggleCustomTool.InitializeAsync(this);
        }