Beispiel #1
0
        private void btnAddCtrlr_Click(object sender, EventArgs e)
        {
            FrmAddOrModifyFaceDev frmModify = new FrmAddOrModifyFaceDev();

            if (frmModify.ShowDialog(this) == DialogResult.OK)
            {
                AddRow(frmModify.Device);
            }
        }
Beispiel #2
0
        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);
            }
        }