Пример #1
0
    private void GetFaces(List <string> arr, List <FacesPart> Arr)
    {
        string lastType = "";

        foreach (string path in arr)
        {
            String[] textSplit = path.Split("_"[0]);

            FacesPart part = new FacesPart();
            part.type      = textSplit[2];
            part.sex       = textSplit[1];
            part.expresion = textSplit[3];

            if (lastType != part.type)
            {
                Arr.Add(part);
            }
            lastType = part.type;
        }
    }
Пример #2
0
    private void GetFaces(List<string> arr, List<FacesPart> Arr)
    {
        string lastType = "";
        foreach (string path in arr)
        {
            String[] textSplit = path.Split("_"[0]);

            FacesPart part = new FacesPart();
            part.type = textSplit[2];
            part.sex = textSplit[1];
            part.expresion = textSplit[3];

            if (lastType != part.type)
                Arr.Add(part);
            lastType = part.type;
        }
    }