protected void onPluginLoaded(PluginLoadedEventArgs <T> e) { PluginLoadedEventHandler <T> handler = PluginLoaded; if (handler != null) { handler(this, e); } }
private void LoadDll(string fileName) { foreach (T plugin in PluginsInDll(fileName)) { if (!Plugins.ContainsKey(plugin.PluginName)) { this.Plugins.Add(plugin.PluginName, plugin); PluginListChangedEventArgs <T> ec = new PluginListChangedEventArgs <T>(Plugins); this.onPluginListChanged(ec); PluginLoadedEventArgs <T> e = new PluginLoadedEventArgs <T>(plugin); this.onPluginLoaded(e); } } }