private AutoBuilder(pdb.podcast.Tuning.Auto conf) { this.conf = conf; this.name = conf.name; mem0 = new Memory(DAT + "v." + conf.name + ".db.txt"); mem1 = new Memory(DAT + "r." + conf.name + ".db.txt"); this.file = DAT + "auto." + conf.name + ".log"; }
public static void build(XmlNode xAuto, IBuilderSource source) { if (xAuto is XmlElement) { var conf = new pdb.podcast.Tuning.Auto(xAuto as XmlElement); var name = conf.name; AutoBuilder builder = list.Find(a => a.name == name); if (builder == null) { builder = new AutoBuilder(conf); list.Add(builder); builder.naturalOrder = list.Count; index = list.Count - 1; if (main == null) { main = builder; } } builder.conf = conf; builder.source = source; } }