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); }
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); }