private void AddBtn_Click(object sender, EventArgs e) { AddEditPeople people = new AddEditPeople(ClinicId); if (people.ShowDialog() == DialogResult.OK) { initPeopleGrid(); } }
private void EditBtn_Click(object sender, EventArgs e) { int id = int.Parse(PeoplesGrid.Rows[int.Parse(PeoplesGrid.CurrentCell.RowIndex.ToString())].Cells[0].Value.ToString()); AddEditPeople people = new AddEditPeople(ClinicId, id); if (people.ShowDialog() == DialogResult.OK) { initPeopleGrid(); } }