Exemplo n.º 1
0
        private List <List <string> > SplitValueMain(int pCount)
        {
            List <List <string> > list  = new List <List <string> >();
            List <string>         pList = CommFunc.SplitStringSkipNull(CommFunc.ConvertNumberString(this.Txt_Number.Text, " ", ""), " ");

            this.Txt_Number.Text = CommFunc.Join(pList, " ");
            if (pList.Count >= pCount)
            {
                int num;
                for (num = 0; num < pCount; num++)
                {
                    List <string> item = new List <string>();
                    list.Add(item);
                }
                for (num = 0; num < pList.Count; num++)
                {
                    string str2 = pList[num];
                    list.Sort((pStr1, pStr2) => pStr1.Count - pStr2.Count);
                    for (int i = 0; i < (pCount - 1); i++)
                    {
                        list[i].Add(str2);
                    }
                }
                list.Sort((pStr1, pStr2) => pStr2.Count - pStr1.Count);
            }
            return(list);
        }