protected override void Init(XmlNode source, LoaderContext ctx) { _children = new List <Conditional>(); foreach (XmlNode child in source.ChildNodes) { _children.Add(Conditional.Load(child, ctx)); } }
public ConditionalFolder(XmlNode node, LoaderContext ctx) { Folder = node.Attributes["Folder"].InnerText; ActiveWhen = ActiveWhen.Parse(node); _conditions = new Dictionary <string, Conditional>(StringComparer.InvariantCultureIgnoreCase); foreach (XmlNode n in node.SelectNodes("./*")) { if (!n.LocalName.Equals("ActiveWhen", StringComparison.InvariantCultureIgnoreCase)) { var c = Conditional.Load(n, ctx); _conditions[n.Attributes["ApplyTo"].NodeText()] = c; } } }
protected override void Init(XmlNode source, LoaderContext ctx) { _child = Conditional.Load(source.SelectSingleNode("./*"), ctx); }