private static ActiveWhen Create(System.Xml.XmlNode source) { ActiveWhen aw = _types[source.LocalName](); aw.Load(source); return(aw); }
private bool IsActive(_7thWrapperLib.ActiveWhen aw) { if (aw == null) { return(true); } return(aw.IsActive(IsConfigActive)); }
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; } } }
public ModFolder(XmlNode source) { Folder = source.Attributes["Folder"].NodeText(); ActiveWhen = ActiveWhen.Parse(source); }
protected override void Load(XmlNode source) { _child = Create(source.SelectSingleNode("*")); }