public PersonsRow AddPersonsRow(string personId, string firstName, string lastName, string familyName, string gender, string birthDate, string deathDate, string comment) { PersonsRow rowPersonsRow = ((PersonsRow)(this.NewRow())); object[] columnValuesArray = new object[] { personId, firstName, lastName, familyName, gender, birthDate, deathDate, comment }; rowPersonsRow.ItemArray = columnValuesArray; this.Rows.Add(rowPersonsRow); return(rowPersonsRow); }
public void Populate() { this.Clear(); PersonRepository persons = new PersonRepository(); List <Person> per = new List <Person>(); per = persons.ReadAll(); foreach (Person pers in per) { PersonsRow pr = this.NewPersonsRow(); pr.CNP = pers.CNP; pr.FirstName = pers.FirstName; pr.LastName = pers.LastName; pr.Birth = pers.Birth; pr.Age = pers.Age; pr.Sex = pers.Sex; this.AddPersonsRow(pr); } }
public PersonsRowChangeEvent(PersonsRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemovePersonsRow(PersonsRow row) { this.Rows.Remove(row); }
public void AddPersonsRow(PersonsRow row) { this.Rows.Add(row); }
public PersonsRowChangeEvent(PersonsRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemovePersonsRow(PersonsRow row) { this.Rows.Remove(row); }
public void AddPersonsRow(PersonsRow row) { this.Rows.Add(row); }
public void NewRowFromUI() { PersonsRow newRow = this.NewPersonsRow(); this.AddPersonsRow(newRow); }