private void LoadEmbeddablePlugins() { var plugins = new List <IEmbeddable>(); plugins = (List <IEmbeddable>)pluginManager.GetEmbeddablePlugins(); if (plugins.Count > 0) { var repository = new Plugins(); foreach (IEmbeddable p in plugins) { litPlugins.Text += "<li><strong>[Embeddable]</strong>: " + p + "</li>"; repository.AddEmbeddableToDatabase(p.EmbeddableID, p.EmbeddableName); } } else { litPlugins.Text += "<li>No embeddable plugins are currently registered with the system.</li>"; } litLocation.Text += "<li><strong>Embeddable Plugins:</strong> " + ConfigurationManager.AppSettings["EmbeddablePluginFolder"] + "</li>"; }