using System; using System.Collections.Generic; using System.Text; using System.Xml; namespace Tango.SystemInfo { class XMLConfig { private static List propNames; public static List GetSettings(string WMIClassName) { if (propNames == null) { propNames = new List(); System.Xml.XmlDocument xmldoc = new System.Xml.XmlDocument(); xmldoc.Load(Tango.Core.Helpers.EmbeddedResourceHelper.GetEmbeddedResourceStream("Tango.SystemInfo.settings.xml")); System.Xml.XmlNode properties = xmldoc.SelectSingleNode("//" + WMIClassName); for (int i = 0; i < properties.ChildNodes.Count; i++) propNames.Add(properties.ChildNodes[i].InnerText); } return propNames; } } }