public static async task Initialize(AsyncPackage package) { var commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; var dte = await package.GetServiceAsync(typeof(DTE)) as DTE2; Instance = new AddCommand(commandService, dte); }
public static void Initialize(Package package) { Instance = new AddCommand(package); }