Esempio n. 1
0
        private void frmPersonFPVerify_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement


            //rs.Close
            //cnx.Close
            //UPGRADE_NOTE: Object op may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            op = null;
            //UPGRADE_NOTE: Object vp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            vp = null;

            return;

FPA_Error:
            if (Err().Number == 429)
            {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            }
            else
            {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                // ERROR: Not supported in C#: ResumeStatement
            }
        }
Esempio n. 2
0
        private void Command1_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement

            //   If tName.Text = "" Then
            //     MsgBox "Enter user name "
            //     Exit Sub
            //   End If

            if (op == null)
            {
                op = new DPSDKOPSLib.FPGetTemplate();
            }
            op.Run();

            return;

FPA_Error:
            if (Err().Number == 429)
            {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            }
            else
            {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                // ERROR: Not supported in C#: ResumeStatement
            }
        }
Esempio n. 3
0
        private void op_Done(object pTemplate)
        {
            object re        = null;
            object thsh      = null;
            object src       = null;
            object er        = null;
            object varnt     = null;
            object blob_read = null;
            object rs        = null;

            // ERROR: Not supported in C#: OnErrorStatement


            tp = pTemplate;
            DpSdkEngLib.FPTemplate rp = default(DpSdkEngLib.FPTemplate);

            op = new DPSDKOPSLib.FPGetTemplate();
            vp = new DpSdkEngLib.FPVerify();

            bool   result  = false;
            object strHex  = null;
            string strTemp = null;
            short  rno     = 0;

            rno    = 1;
            result = false;

            rs = modRecordSet.getRS(ref "SELECT * FROM PersonFPLnk WHERE PersonID = " + gID);
            //UPGRADE_WARNING: Couldn't resolve default property of object rs.RecordCount. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            if (rs.RecordCount > 0)
            {
                //Label3 = "You already have Finger Prints saved."
                //rs.Find "employee_name = '" + tName.Text + "'"
                //If rs.EOF = False Then
                //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                //UPGRADE_WARNING: Couldn't resolve default property of object blob_read. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                blob_read = rs("Person_FP");
                //UPGRADE_WARNING: Couldn't resolve default property of object blob_read. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                //UPGRADE_WARNING: Couldn't resolve default property of object varnt. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                varnt = blob_read;
                rp    = new DpSdkEngLib.FPTemplate();
                //UPGRADE_WARNING: Couldn't resolve default property of object er. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                er = rp.import(varnt);
                //UPGRADE_WARNING: Couldn't resolve default property of object re. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                re = vp.Compare(rp, pTemplate, result, src, thsh, false, DpSdkEngLib.AISecureModeMask.Sm_None);
                //UPGRADE_NOTE: Object rp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
                rp = null;
                //End If
            }
            else
            {
            }


            if (result == true)
            {
                Label1.Text = "Passed !!! Finger prints matched ";
                Label1.Refresh();
                Interaction.MsgBox("Finger print matched.");
                //+ rs("employee_name")
            }
            else
            {
                Label1.Text = "Failed !!! Finger prints NOT matched";
                Label1.Refresh();
                Interaction.MsgBox("No finger print match found !");
            }

            //UPGRADE_NOTE: Object rp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            rp = null;
            //UPGRADE_NOTE: Object op may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            op = null;
            //UPGRADE_NOTE: Object vp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            vp = null;

            return;

FPA_Error:
            if (Err().Number == 429)
            {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            }
            else
            {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                // ERROR: Not supported in C#: ResumeStatement
            }
        }
Esempio n. 4
0
        private void op_Done(object pTemplate)
        {
            object re = null;
            object thsh = null;
            object src = null;
            object er = null;
            object varnt = null;
            object blob_read = null;
            object rs = null;
             // ERROR: Not supported in C#: OnErrorStatement

            tp = pTemplate;
            DpSdkEngLib.FPTemplate rp = default(DpSdkEngLib.FPTemplate);

            op = new DPSDKOPSLib.FPGetTemplate();
            vp = new DpSdkEngLib.FPVerify();

            bool result = false;
            object strHex = null;
            string strTemp = null;
            short rno = 0;

            rno = 1;
            result = false;

            rs = modRecordSet.getRS(ref "SELECT * FROM PersonFPLnk WHERE PersonID = " + gID);
            //UPGRADE_WARNING: Couldn't resolve default property of object rs.RecordCount. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            if (rs.RecordCount > 0) {

                //Label3 = "You already have Finger Prints saved."
                //rs.Find "employee_name = '" + tName.Text + "'"
                //If rs.EOF = False Then
                //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                //UPGRADE_WARNING: Couldn't resolve default property of object blob_read. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                blob_read = rs("Person_FP");
                //UPGRADE_WARNING: Couldn't resolve default property of object blob_read. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                //UPGRADE_WARNING: Couldn't resolve default property of object varnt. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                varnt = blob_read;
                rp = new DpSdkEngLib.FPTemplate();
                //UPGRADE_WARNING: Couldn't resolve default property of object er. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                er = rp.import(varnt);
                //UPGRADE_WARNING: Couldn't resolve default property of object re. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                re = vp.Compare(rp, pTemplate, result, src, thsh, false, DpSdkEngLib.AISecureModeMask.Sm_None);
                //UPGRADE_NOTE: Object rp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
                rp = null;
                //End If

            } else {

            }

            if (result == true) {
                Label1.Text = "Passed !!! Finger prints matched ";
                Label1.Refresh();
                Interaction.MsgBox("Finger print matched.");
                //+ rs("employee_name")
            } else {
                Label1.Text = "Failed !!! Finger prints NOT matched";
                Label1.Refresh();
                Interaction.MsgBox("No finger print match found !");
            }

            //UPGRADE_NOTE: Object rp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            rp = null;
            //UPGRADE_NOTE: Object op may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            op = null;
            //UPGRADE_NOTE: Object vp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            vp = null;

            return;
            FPA_Error:
            if (Err().Number == 429) {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            } else {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                 // ERROR: Not supported in C#: ResumeStatement

            }
        }
Esempio n. 5
0
        private void frmPersonFPVerify_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement

            //rs.Close
            //cnx.Close
            //UPGRADE_NOTE: Object op may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            op = null;
            //UPGRADE_NOTE: Object vp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            vp = null;

            return;
            FPA_Error:
            if (Err().Number == 429) {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            } else {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                 // ERROR: Not supported in C#: ResumeStatement

            }
        }
Esempio n. 6
0
        private void Command1_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement

            //   If tName.Text = "" Then
            //     MsgBox "Enter user name "
            //     Exit Sub
            //   End If

            if (op == null) {
                op = new DPSDKOPSLib.FPGetTemplate();
            }
            op.Run();

            return;
            FPA_Error:
            if (Err().Number == 429) {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            } else {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                 // ERROR: Not supported in C#: ResumeStatement

            }
        }