/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAdd_Click(object sender, EventArgs e) { frmPersonItem f = new frmPersonItem(); if (f.ShowDialog() == DialogResult.OK) { Fill(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnEdit_Click(object sender, EventArgs e) { if (this.dataGridView1.CurrentRow == null) { return; } frmPersonItem f = new frmPersonItem(); f.TblPerson = GetSelectedPerson(); if (f.ShowDialog () == DialogResult.OK ) { Fill(); } }