protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { if (await GetServiceAsync(typeof(IMenuCommandService)) is OleMenuCommandService commandService) { ExportCommand.Initialize(this, commandService); } }
public static void Initialize(AsyncPackage package, OleMenuCommandService commandService) { Instance = new ExportCommand(package, commandService); }