// These methods are called from the Loader in XlRegistration via IntegrationHelpers internal static void AddCommandMenu(string commandName, string menuName, string menuText, string description, string shortCut, string helpTopic) { _menuManager.AddCommandMenu(commandName, menuName, menuText, description, shortCut, helpTopic); }
// These methods are called from the Loader in XlRegistration via IntegrationHelpers internal static void AddCommandMenu(string commandName, string menuName, string menuText, string description, string shortCut, string helpTopic) { EnsureInitialized(); // We don't want this to run in the initial registration phase, so we just queue up the work here _deferredAddQueue.Add(() => _menuManager.AddCommandMenu(commandName, menuName, menuText, description, shortCut, helpTopic)); }