/// <summary> /// Initialize customizator and associate with given manager. /// </summary> public void Initialize(CustomAddInManager m) { IMenuCreator mc = m.MenuCreator; // read the global settings for an add-in: config = ObjectFactory.LoadConfiguration(null); // configure the management objects: manager = m; tytanToolbar = mc.AddToolbar(ToolbarName); tytanAuxTools = mc.AddPopup(tytanToolbar, AuxiliaryToolsName, null, false, -1); tytanRefactors = mc.AddPopup(tytanToolbar, RefactorMenu, null, true, -1); refactors = new List <CommandBar>(); if (tytanRefactors != null) { refactors.Add(tytanRefactors.CommandBar); } refactors.Add(mc.GetMainMenuCommandBar(RefactorMenu)); refactors.Add(mc.GetCodeWindowCommandBar(RefactorMenu)); }