private void btnAddCtrlr_Click(object sender, EventArgs e) { FrmAddOrModifyFaceDev frmModify = new FrmAddOrModifyFaceDev(); if (frmModify.ShowDialog(this) == DialogResult.OK) { AddRow(frmModify.Device); } }
private void DoModify(DataGridViewRow row) { Maticsoft.Model.SMT_FACERECG_DEVICE dev = (Maticsoft.Model.SMT_FACERECG_DEVICE)row.Tag; FrmAddOrModifyFaceDev frmModify = new FrmAddOrModifyFaceDev(dev); if (frmModify.ShowDialog(this) == DialogResult.OK) { UpdateRow(row, frmModify.Device); } }