Exemplo n.º 1
0
    public static void DecodeTable(string str)
    {
        Configs.Clear();
        str = StringUtils.Replace(str, '\r', '\n');
        str = StringUtils.Replace(str, "\n\n", '\n');
        List <List <string> > list = CSV.Parse(str);

        for (int i = 2, len = list.Count; i < len; i++)
        {
            LanguageConfig item = new LanguageConfig();
            item.Decode(list[i]);
            Configs.Add(item);
        }
    }