//********************************************* Biometric Section ********************************************// private void initialiseMFS100() { try { Control.CheckForIllegalCrossThreadCalls = false; mfs100 = new MFS100(); mfs100.OnPreview += onPreview; mfs100.OnCaptureCompleted += onCaptureCompleted; int ret = mfs100.Init(); if (ret != 0) { showMessage(mfs100.GetErrorMsg(ret), true); } } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Exception@initialiseMFS100", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
protected void Page_Load(object sender, EventArgs e) { mfs100 = new MFS100(); }