public void ExecuteBefore(IPagePlugin pluginInstance, Control sender, PluginEventArgs e) { this.InvokePluginList(pluginInstance, this.beforeActions, sender, e); }
private void InvokePluginList(IPagePlugin pluginInstance, List <CommandPluginHandler> plugin_handlers, Control sender, PluginEventArgs e) { if (plugin_handlers.Count > 0) { foreach (CommandPluginHandler handler in plugin_handlers) { handler.GetEventHandler(pluginInstance)(sender, e); } } }
public void ExecuteAfter(IPagePlugin pluginInstance, Control sender, PluginEventArgs e) { this.InvokePluginList(pluginInstance, this.afterActions, sender, e); }