Ejemplo n.º 1
0
        // 将table 专用的列表示法, 转化为通用的列表示法
        // 前者是从 -1 开始计算列号;后者是从 0 开始计算列号
        public static string TableToNormal(string strSource)
        {
            SortColumnCollection temp = new SortColumnCollection();

            temp.Build(strSource);

            StringBuilder text = new StringBuilder(4096);

            foreach (SortColumn column in temp)
            {
                if (text.Length > 0)
                {
                    text.Append(",");
                }
                text.Append((column.nColumnNumber + 1).ToString() + ":");
                text.Append(column.ToStyleString());
            }

            return(text.ToString());
        }
Ejemplo n.º 2
0
Archivo: Table.cs Proyecto: zszqwe/dp2
 public ComparerClass(string strColumnList)
 {
     sortstyle = new SortColumnCollection();
     sortstyle.Build(strColumnList);
 }