private bool EnrollImport() { int vnRet; vnRet = ObjFpReader.pisClearTptArray(contextId); if (vnRet != ObjFpReader.PISFP_OK) { ErrorDescription(ObjFpReader.INIT_PROC, ObjFpReader.CLEAR_TPT_ARRAY_FUNC, vnRet); ObjFpReader.pisDestroyContext(contextId); return(false); } for (int i = 0; i < fpDataList.Count; i++) { int identifiedID = i + 1; vnRet = ObjFpReader.pisAddTptArray(contextId, identifiedID, fpDataList[i]); if (vnRet != ObjFpReader.PISFP_OK) { ErrorDescription(ObjFpReader.INIT_PROC, ObjFpReader.ADD_TPT_ARRAY_FUNC, vnRet); ObjFpReader.pisDestroyContext(contextId); return(false); } } return(true); }
private void btnClearFpData_Click(object sender, EventArgs e) { if (Pub.MessageBoxShowQuestion(Pub.GetResText(formCode, "MsgClearRequest", ""))) { return; } fpDataList.Clear(); if (ClearFpDataToDB(txtEmpNo.Text, txtFingerNo.Text)) { ObjFpReader.pisClearTptArray(contextId); txtInfo.Text = string.Format(Pub.GetResText(formCode, "MsgClearComplete", ""), txtEmpNo.Text); } }