private void OnPluginCommandAdded(CommandAddedEventArgs e) { foreach (EventListener v in Plugins) { PluginListener pl = (PluginListener)v.Listener; if (v.Event == Event.CommandAdded) { pl.OnPluginCommandAdded(e); } } }
private void OnPluginDisabled(PluginDisabledEventArgs e) { foreach (EventListener v in Plugins) { PluginListener pl = (PluginListener)v.Listener; if (v.Event == Event.PluginDisabled) { pl.OnPluginDisabled(e); } } }