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