Beispiel #1
0
        public XMLConfig GetConfig(string tag)
        {
            for (int i = 0; i < this.configList.Count; i++)
            {
                XMLConfig config = (XMLConfig)this.configList[i];
                if (tag == config.GetName())
                {
                    return(config);
                }
            }

            return(null);
        }
Beispiel #2
0
        public bool HasConfig(string tag)
        {
            for (int i = 0; i < this.configList.Count; i++)
            {
                XMLConfig conf = (XMLConfig)this.configList[i];
                if (tag == conf.GetName())
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #3
0
        public XMLConfig[] GetConfigs(string tag)
        {
            List <XMLConfig> configList = new List <XMLConfig>();

            for (int i = 0; i < this.configList.Count; i++)
            {
                XMLConfig config = (XMLConfig)this.configList[i];
                if (tag == config.GetName())
                {
                    configList.Add(config);
                }
            }

            XMLConfig[] configs = new XMLConfig[configList.Count];
            configs = configList.ToArray();
            return(configs);
        }