Пример #1
0
        private static ActiveWhen Create(System.Xml.XmlNode source)
        {
            ActiveWhen aw = _types[source.LocalName]();

            aw.Load(source);
            return(aw);
        }
Пример #2
0
 private bool IsActive(_7thWrapperLib.ActiveWhen aw)
 {
     if (aw == null)
     {
         return(true);
     }
     return(aw.IsActive(IsConfigActive));
 }
Пример #3
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;
         }
     }
 }
Пример #4
0
 public ModFolder(XmlNode source)
 {
     Folder     = source.Attributes["Folder"].NodeText();
     ActiveWhen = ActiveWhen.Parse(source);
 }
Пример #5
0
 protected override void Load(XmlNode source)
 {
     _child = Create(source.SelectSingleNode("*"));
 }