Пример #1
0
 protected override void Init(XmlNode source, LoaderContext ctx)
 {
     _children = new List <Conditional>();
     foreach (XmlNode child in source.ChildNodes)
     {
         _children.Add(Conditional.Load(child, ctx));
     }
 }
Пример #2
0
 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;
         }
     }
 }
Пример #3
0
 protected override void Init(XmlNode source, LoaderContext ctx)
 {
     _child = Conditional.Load(source.SelectSingleNode("./*"), ctx);
 }