示例#1
0
        protected override void Initialize()
        {
            AutoBuildCommand.Initialize(this);
            base.Initialize();

            var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            if (null != mcs)
            {
                var menuCommandId = new CommandID(CommandSet, CommandId);
                var menuItem      = new OleMenuCommand(AutoBuildEntityEvent, menuCommandId);
                mcs.AddCommand(menuItem);
            }
        }
示例#2
0
 public static void Initialize(Package package)
 {
     Instance = new AutoBuildCommand(package);
 }