Exemplo n.º 1
0
 public static void Add(DataRows row)
 {
     foreach (PDATable table in tables)
     {
         if(table.Name == row.FieldByName("TABLE_NAME"))
         {
             table.AddField(row);
             return;
         }
     }
     PDATable newtable = new PDATable();
     newtable.Name = row.FieldByName("TABLE_NAME");
     tables.Add(newtable);
     newtable.AddField(row);
 }
Exemplo n.º 2
0
        public static void Add(DataRows row)
        {
            foreach (PDATable table in tables)
            {
                if (table.Name == row.FieldByName("TABLE_NAME"))
                {
                    table.AddField(row);
                    return;
                }
            }
            PDATable newtable = new PDATable();

            newtable.Name = row.FieldByName("TABLE_NAME");
            tables.Add(newtable);
            newtable.AddField(row);
        }