/// <summary> /// Initialization of the package; this method is called right after the package is sited, so this is the place /// where you can put all the initialization code that rely on services provided by VisualStudio. /// </summary> protected override void Initialize() { base.Initialize(); ExtensionSettings.CreateInstance(this); var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; if (null == mcs) { return; } var menuCommandId = new CommandID(new Guid("EBC07634-7668-403D-9B3B-D6B6B50E307C"), (int)CommandIdShelvesetComparerMenu); var menuItem = new MenuCommand(this.MenuItemCallback, menuCommandId); mcs.AddCommand(menuItem); var toolwndCommandId = new CommandID(new Guid("EBC07634-7668-403D-9B3B-D6B6B50E307C"), (int)CommandIdShelvesetComparerToolWindow); var menuToolWin = new MenuCommand(this.ShowToolWindow, toolwndCommandId); mcs.AddCommand(menuToolWin); }