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);
        }
示例#2
0
 public static void Initialize(Package package)
 {
     Instance = new AddCommand(package);
 }