public override object Parse(XmlElement node) { njSubConfiguration configSub = new njSubConfiguration(node); configSub.LoadConfiguration(); return(configSub); }
public override bool Apply(ref XmlElement node, object value) { node.RemoveAll(); node.SetAttribute("type", GetConfigTypeAttribute()); njSubConfiguration configSub = value as njSubConfiguration; if (configSub != null) { configSub.SaveConfiguration(); foreach (XmlElement nodeSub in configSub.SubRoot) { node.AppendChild(node.OwnerDocument.ImportNode(nodeSub, true)); } } return(configSub != null); }