LoadData() 공개 메소드

public LoadData ( XmlNode node ) : void
node System.Xml.XmlNode
리턴 void
예제 #1
0
        public override void LoadData(XmlNode node)
        {
            if (node == null)
            {
                throw new ArgumentNullException("node");
            }

            if (node.Name != GroupName)
            {
                throw new FormatException(String.Format("Expecting <{0}>", GroupName));
            }

            keys = new System.Collections.Specialized.ListDictionary();
            foreach (XmlNode n in node.ChildNodes)
            {
                string       name = n.Attributes["name"].Value;
                string       key  = GetNodeKey(name, n);
                XMLParameter parm = new XMLParameter();
                parm.LoadData(n);
                keys.Add(key, parm);
                LoadExtraData(key, n);
            }
        }
예제 #2
0
		public override void LoadData (XmlNode node)
		{
			if (node == null)
				throw new ArgumentNullException ("node");

			if (node.Name != GroupName)
				throw new FormatException (String.Format ("Expecting <{0}>", GroupName));

			keys = new System.Collections.Specialized.ListDictionary ();
			foreach (XmlNode n in node.ChildNodes) {
				string name = n.Attributes["name"].Value;
				string key = GetNodeKey (name, n);
				XMLParameter parm = new XMLParameter ();
				parm.LoadData (n);
				keys.Add (key, parm);
				LoadExtraData (key, n);
			}
		}