コード例 #1
0
        protected void onPluginLoaded(PluginLoadedEventArgs <T> e)
        {
            PluginLoadedEventHandler <T> handler = PluginLoaded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #2
0
        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);
                }
            }
        }