示例#1
0
        public static Frame CreateFrame(string[] values, string colName)
        {
            DFColumn[] cols = new DFColumn[1];

            cols[0] = new DFStringColumn(colName, values);

            Frame frame = new Frame(Guid.NewGuid(), cols);

            return frame;
        }
示例#2
0
 public static DFStringColumn CreateStringCol(string name, int rowCount)
 {
     string[] data = new string[rowCount];
     for (int i = 0; i < rowCount; i++)
     {
         data[i] = string.Format("string [{0}]", i);
     }
     DFStringColumn col = new DFStringColumn(name, data);
     return col;
 }
示例#3
0
        public static Frame CreateFrame(string[] values, string[] values2)
        {
            DFColumn[] cols = new DFColumn[2];

            cols[0] = new DFStringColumn("col 0", values);
            cols[1] = new DFStringColumn("col 1", values2);

            Frame frame = new Frame(Guid.NewGuid(), cols);

            return frame;
        }