public void RemoveItemsForPlugin(PluginIdentity identity) { _menuIndex.RemoveItemsForPlugin(identity); for (int i = this.Count() - 1; i >= 0; i--) { var bar = this[i]; if (bar.PluginIdentity == identity) { Remove(i); } else { ItemCollectionBase.RemoveItems(bar.Items, identity); } } }
public void RemoveItemsForPlugin(PluginIdentity identity) { _menuIndex.RemoveItemsForPlugin(identity); ItemCollectionBase.RemoveItems(Items, identity); }