コード例 #1
0
        public static void Initialize(ExpertWatchPackage package)
        {
            OleMenuCommandService commandService = package.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            Instance = new ExpertWatchCommand(package, commandService);
        }
コード例 #2
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            ExpertWatchCommand.Initialize(this);
        }