Esempio n. 1
0
        public override object Parse(XmlElement node)
        {
            njSubConfiguration configSub = new njSubConfiguration(node);

            configSub.LoadConfiguration();

            return(configSub);
        }
Esempio n. 2
0
        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);
        }