Пример #1
0
 private void GeneratePlugin <T>(ProjectPluginParameters parameters, PluginManager <T> manager, List <T> container) where T : IPlugin
 {
     foreach (KeyValuePair <string, Dictionary <string, string> > key in parameters)
     {
         T generator = manager.Get(key.Key);
         generator.SetParameters(key.Value);
         container.Add(generator);
     }
 }
Пример #2
0
 private void ParsePlugin(XmlNode node, ProjectPluginParameters pluginParameters)
 {
     foreach (XmlNode child in node.ChildNodes)
     {
         if (child is XmlComment)
         {
             continue;
         }
         pluginParameters.Add(new KeyValuePair <string, Dictionary <string, string> >(child.Attributes["name"].Value, GetPlugins(child)));
     }
 }
Пример #3
0
 private void ParsePlugin( XmlNode node, ProjectPluginParameters pluginParameters )
 {
     foreach( XmlNode child in node.ChildNodes ) {
         if( child is XmlComment ) {
             continue;
         }
         pluginParameters.Add( new KeyValuePair<string, Dictionary<string, string>>( child.Attributes["name"].Value, GetPlugins( child ) ) );
     }
 }