예제 #1
0
		public PropertiesNode(XmlElement el)
		{
			Text = ResNodeName("Properties");
			panel = new PropertiesOptionPanel(this);

			if (el == null) return;
			
			foreach (XmlElement el2 in el.ChildNodes) {
				if (el2.Attributes["name"] == null || el2.Attributes["value"] == null) continue;
				Properties.Add(el2.Attributes["name"].InnerText, el2.Attributes["value"].InnerText);
			}
			
		}
예제 #2
0
        public PropertiesNode(XmlElement el)
        {
            Text  = ResNodeName("Properties");
            panel = new PropertiesOptionPanel(this);

            if (el == null)
            {
                return;
            }

            foreach (XmlElement el2 in el.ChildNodes)
            {
                if (el2.Attributes["name"] == null || el2.Attributes["value"] == null)
                {
                    continue;
                }
                Properties.Add(el2.Attributes["name"].InnerText, el2.Attributes["value"].InnerText);
            }
        }