Exemplo n.º 1
0
 protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
 {
     if (await GetServiceAsync(typeof(IMenuCommandService)) is OleMenuCommandService commandService)
     {
         OpenToolWindowCommand.Initialize(this, commandService);
     }
 }
Exemplo n.º 2
0
 public static void Initialize(Package package, OleMenuCommandService commandService)
 {
     Instance = new OpenToolWindowCommand(package, commandService);
 }