Пример #1
0
        private void AddField(DataRows row)
        {
            foreach (PDAField field in fields)
            {
                if (field.Name == row.FieldByName("COLUMN_NAME"))
                {
                    throw new Exception("Двойное поле");
                }
            }
            PDAField newfield = new PDAField(row);

            fields.Add(newfield);
        }
Пример #2
0
 private void AddField(DataRows row)
 {
     foreach (PDAField field in fields)
     {
         if(field.Name == row.FieldByName("COLUMN_NAME"))
             throw new Exception("Двойное поле");
     }
     PDAField newfield = new PDAField(row);
     fields.Add(newfield);
 }