private void LoadPreset(XmlNode nodes) { foreach (XmlNode node in nodes.ChildNodes) { if (node.Name != "preset" || node.ChildNodes.Count == 0) continue; var p = new Preset(node.Attributes["name"].Value, node); //LoadNodes(node,p.Nodes); _manager.Presets.AddPreset(p); } }
internal void AddPreset(Preset p) { //presets.Add(p.Name,p); presets[p.Name] = p; }