public MingMenuItemAndHandler(MingMenuItem menuItem, IMingMenuClient menuClient, string pluginId) { MenuItem = menuItem; MenuClient = menuClient; PluginId = pluginId; }
public void AddMenuItems(IEnumerable<MingMenuItem> items, IMingMenuClient menuClient, string pluginId) { items.ToList().ForEach(item => _menuItems.Add( new MingMenuItemAndHandler(item, menuClient, pluginId))); _menuClients.Add(menuClient); }