private void bAdd_Click(object sender, EventArgs e) { PersonForm pf = new PersonForm("Add", control); if (pf.ShowDialog() == DialogResult.OK) { RefreshData(); } }
private void bDelete_Click(object sender, EventArgs e) { SelectId si = new SelectId(); if (si.ShowDialog() == DialogResult.OK) { PersonForm pf = new PersonForm("Delete", control, si.ReturnId); if (pf.ShowDialog() == DialogResult.OK) { RefreshData(); } } }