예제 #1
0
        private void op_SampleReady(object pSample)
        {
            // ERROR: Not supported in C#: OnErrorStatement


            if (cursample < 3)
            {
                Label3.Text = "Yes, put your finger again on the sensor for sample #" + Conversion.Str(cursample + 1);
                Label3.Refresh();
            }
            else
            {
                Label3.Text = "Wait for the Verify form";
                Label3.Refresh();
                this.Cursor = System.Windows.Forms.Cursors.Cross;
            }

            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.PictureOrientation. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            pSample.PictureOrientation = DpSdkEngLib.AIOrientation.Or_Portrait;
            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.PictureWidth. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            pSample.PictureWidth = sizeConvertors.pixelToTwips(picSample[cursample].Width, true) / sizeConvertors.twipsPerPixel(true);
            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.PictureHeight. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            pSample.PictureHeight = sizeConvertors.pixelToTwips(picSample[cursample].Height, false) / sizeConvertors.twipsPerPixel(false);
            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.Picture. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            picSample[cursample].Image = pSample.Picture;
            lblEvents.Text             = "Sample ready";

            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 start_cmd_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement


            //eName.Text = ""
            //eName.Refresh
            Label3.Text = "Put your finger on the senser 4 times -> ";
            Label3.Refresh();
            picSample_Click(picSample[0], new System.EventArgs());

            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
            }
        }