static void RegisterMenu(XlMethodInfo mi) { if (!string.IsNullOrEmpty(mi.MenuName) && !string.IsNullOrEmpty(mi.MenuText)) { MenuManager.AddCommandMenu(mi.Name, mi.MenuName, mi.MenuText, mi.Description, mi.ShortCut, mi.HelpTopic); } }