public frmScanFinger(Object sender,FingersBiometrics Data,int FingerPosition) { InitializeComponent(); this.FingerPosition = FingerPosition; this.Data = Data; this.Control = (Control)sender; DeleteData(); this.FormClosing +=new FormClosingEventHandler(delegate{CloseForm();}); this.SetControls(Picture, StatusText, Prompt, StatusLine); this.CloseButton.Click += new EventHandler(delegate { this.Close(); }); }
public frmScanFinger(Object sender, FingersBiometrics Data, int FingerPosition) { InitializeComponent(); this.FingerPosition = FingerPosition; this.Data = Data; this.Control = (Control)sender; DeleteData(); this.FormClosing += new FormClosingEventHandler(delegate { CloseForm(); }); this.SetControls(Picture, StatusText, Prompt, StatusLine); this.CloseButton.Click += new EventHandler(delegate { this.Close(); }); }
public void UpdateEmployeeMatches(int Empl_Id_No, FingersBiometrics fbInfo) { OracleConnection conn = new OracleConnection(ConStr); List<Employee> list = new List<Employee>(); for (int FingerNo = 0; FingerNo < FingersBiometrics.MaxFingers; FingerNo++) { for (int x = 0; x < FingersBiometrics.MaxSamples; x++) { if (fbInfo.Samples[FingerNo, x] != null) { GetEmployeeMatches(list, fbInfo.Samples[FingerNo, x], FingerNo); } } foreach (Employee info in list) { OracleCommand command = new OracleCommand("EmployeeMatches_update", conn); command.CommandType = CommandType.StoredProcedure; var _params = command.Parameters; conn.Open(); SetParameterValue(_params, "p_empl_id_no", Empl_Id_No, OracleDbType.Int32); SetParameterValue(_params, "p_match_id_no", info.Empl_Id_No, OracleDbType.Int32); SetParameterValue(_params, Util.GetFingerDesc(FingerNo), "Y", OracleDbType.Varchar2); command.ExecuteNonQuery(); conn.Close(); } } }
private int CountRegisteredFingers(FingersBiometrics fb) { int _result=0; foreach (DPFP.Template item in fb.Templates) { if (item != null) _result += 1; } return _result; }