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