Exemplo n.º 1
0
        public static IniFileList.IniSectionList FindSectionInTreeBySection
            (string section, bool duplicate = false)
        {
            var path = PublicData.FolderConfigPath;

            while (path.Contains(PublicData.RootPath))
            {
                IniFileList.IniSectionList found = FindSectionInFolderBySection(section, path, true);
                if (found != null)
                {
                    return(found);
                }
                path = PublicData.PathDeacreaseByFolder(path);
            }
            return(null);
        }
Exemplo n.º 2
0
        public TestFactory(IniFileList.IniSectionList _section, bool _silent = false)
        {
            section         = _section;
            isTestAutoStart = _silent;

            DefaultSets();

            foreach (IniFileList.IniSectionList.IniKey key in section.Keys)
            {
                if (key.Value == null)
                {
                    key.Value = "";
                }
                RunList.Add(key.Name, key.Value);
                if (FillingMethodsList.ContainsKey(key.Name))
                {
                    FillingMethodsList[key.Name](key.Value);
                }
            }
        }