예제 #1
0
        private void frmPersonFPReg_Load(System.Object eventSender, System.EventArgs eventArgs)
        {
            Label6.AddRange(new Label[] {
                _Label6_0,
                _Label6_1,
                _Label6_2,
                _Label6_3
            });
            picSample.AddRange(new PictureBox[] {
                _picSample_0,
                _picSample_1,
                _picSample_2,
                _picSample_3
            });

            int i = 0;

            // ERROR: Not supported in C#: OnErrorStatement


            //If cnx Is Nothing And rs Is Nothing Then
            //Set cnx = New Connection
            //Set rs = New Recordset
            //End If
            //cnx.Open "sdb", "", ""
            //rs.Open "select * from empl", cnx, adOpenKeyset, adLockOptimistic

            cursample = 0;

            op = new DPSDKOPSLib.FPRegisterTemplate();
            for (i = 0; i <= 3; i++)
            {
                //UPGRADE_NOTE: Object picSample().Picture 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"'
                picSample[i].Image = null;
                Label6[i].Visible  = false;
            }

            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
            }
        }
예제 #2
0
        private void picSample_Click(System.Object eventSender, KeyEventArgs eventArgs)
        {
            int        Index = 0;
            PictureBox pbox  = new PictureBox();

            pbox  = (PictureBox)eventSender;
            Index = GetIndex.GetIndexer(ref pbox, ref picSample);
            // ERROR: Not supported in C#: OnErrorStatement


            short i = 0;

            cursample = 0;
            for (i = 0; i <= 3; i++)
            {
                //UPGRADE_NOTE: Object picSample().Picture 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"'
                picSample[i].Image = null;
                Label6[i].Visible  = false;
            }
            Label6[cursample].Visible = true;
            //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;
            op = new DPSDKOPSLib.FPRegisterTemplate();
            op.Run();
            lblQuality.Text = "";
            lblEvents.Text  = "";

            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
            }
        }
예제 #3
0
        private void picSample_Click(System.Object eventSender, KeyEventArgs eventArgs)
        {
            int Index = 0;
            PictureBox pbox = new PictureBox();
            pbox = (PictureBox)eventSender;
            Index = GetIndex.GetIndexer(ref pbox, ref picSample);
             // ERROR: Not supported in C#: OnErrorStatement

            short i = 0;
            cursample = 0;
            for (i = 0; i <= 3; i++) {
                //UPGRADE_NOTE: Object picSample().Picture 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"'
                picSample[i].Image = null;
                Label6[i].Visible = false;
            }
            Label6[cursample].Visible = true;
            //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;
            op = new DPSDKOPSLib.FPRegisterTemplate();
            op.Run();
            lblQuality.Text = "";
            lblEvents.Text = "";

            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

            }
        }
예제 #4
0
        private void frmPersonFPReg_Load(System.Object eventSender, System.EventArgs eventArgs)
        {
            Label6.AddRange(new Label[] {
                _Label6_0,
                _Label6_1,
                _Label6_2,
                _Label6_3
            });
            picSample.AddRange(new PictureBox[] {
                _picSample_0,
                _picSample_1,
                _picSample_2,
                _picSample_3
            });

            int i = 0;
             // ERROR: Not supported in C#: OnErrorStatement

            //If cnx Is Nothing And rs Is Nothing Then
            //Set cnx = New Connection
            //Set rs = New Recordset
            //End If
            //cnx.Open "sdb", "", ""
            //rs.Open "select * from empl", cnx, adOpenKeyset, adLockOptimistic

            cursample = 0;

            op = new DPSDKOPSLib.FPRegisterTemplate();
            for (i = 0; i <= 3; i++) {
                //UPGRADE_NOTE: Object picSample().Picture 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"'
                picSample[i].Image = null;
                Label6[i].Visible = false;
            }

            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

            }
        }