private void btnVerify_Click(object sender, EventArgs e)
        {
            try
            {
                MyKad_SDK.CBM_Init();
                int iReturn = -1;

                MyKad_SDK.CBM_RdrName[] dlgRdr = new MyKad_SDK.CBM_RdrName[100];
                iReturn = MyKad_SDK.CBM_Enumerate(dlgRdr);

                VerifyForm dlg = new VerifyForm(GetThumb1Path(), GetThumb2Path());
                dlg.ShowDialog();


                if (File.ReadAllText(Path.Combine(_workDirectory, _verifyStatus)) == "SUCCESS")
                {
                    ProfileInfo.IsVerified = true;
                }
                else
                {
                    ProfileInfo.IsVerified = false;
                }

                UpdateUI();
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #2
0
        private void btnVerify_Click(object sender, EventArgs e)
        {
            try
            {
                MyKad_SDK.CBM_Init();
                int iReturn = -1;

                MyKad_SDK.CBM_RdrName[] dlgRdr = new MyKad_SDK.CBM_RdrName[100];
                iReturn = MyKad_SDK.CBM_Enumerate(dlgRdr);


                VerifyForm dlg = new VerifyForm(_mp.MyKad.GetThumb1Path(), _mp.MyKad.GetThumb2Path());
                dlg.ShowDialog();
                //frmVerify2 f = new frmVerify2(_mp.MyKad.GetThumb1Path(), _mp.MyKad.GetThumb2Path());
                //f.ShowDialog();

                if (File.ReadAllText(Path.Combine(_mp.MyKad.GetWorkDirectory(), _mp.MyKad.GetVerifyStatus())) == "SUCCESS")
                {
                    _mp.UserProfile.IsVerified = true;
                    txtStatus.Text             = "VERIFIED";
                    txtStatus.BackColor        = Color.Green;
                    txtStatus.Update();
                    Thread.Sleep(500);
                    _mp.ShowForm(FormType.MainForm);
                }
                else
                {
                    _mp.UserProfile.IsVerified = false;
                    MessageBox.Show("Verification failed. Please try again.");
                }
                // UpdateUI();
            }
            catch (Exception ex)
            {
            }
        }
        private void btnVerify_Click(object sender, EventArgs e)
        {
            try
            {
                MyKad_SDK.CBM_Init();
                int iReturn = -1;

                MyKad_SDK.CBM_RdrName[] dlgRdr = new MyKad_SDK.CBM_RdrName[100];
                iReturn = MyKad_SDK.CBM_Enumerate(dlgRdr);

                VerifyForm dlg = new VerifyForm(GetThumb1Path(), GetThumb2Path());
                dlg.ShowDialog();

                if (File.ReadAllText(Path.Combine(_workDirectory, _verifyStatus)) == "SUCCESS")
                    ProfileInfo.IsVerified = true;
                else
                    ProfileInfo.IsVerified = false;

                UpdateUI();
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #4
0
        private void btnVerify_Click(object sender, EventArgs e)
        {
            try
            {
                MyKad_SDK.CBM_Init();
                int iReturn = -1;

                MyKad_SDK.CBM_RdrName[] dlgRdr = new MyKad_SDK.CBM_RdrName[100];
                iReturn = MyKad_SDK.CBM_Enumerate(dlgRdr);

                VerifyForm dlg = new VerifyForm(_mp.MyKad.GetThumb1Path(), _mp.MyKad.GetThumb2Path());
                dlg.ShowDialog();
                //frmVerify2 f = new frmVerify2(_mp.MyKad.GetThumb1Path(), _mp.MyKad.GetThumb2Path());
                //f.ShowDialog();

                if (File.ReadAllText(Path.Combine(_mp.MyKad.GetWorkDirectory(), _mp.MyKad.GetVerifyStatus())) == "SUCCESS")
                {
                    _mp.UserProfile.IsVerified = true;
                    txtStatus.Text = "VERIFIED";
                    txtStatus.BackColor = Color.Green;
                    txtStatus.Update();
                    Thread.Sleep(500);
                    _mp.ShowForm(FormType.MainForm);

                }
                else
                {
                    _mp.UserProfile.IsVerified = false;
                    MessageBox.Show("Verification failed. Please try again.");
                }
               // UpdateUI();
            }
            catch (Exception ex)
            {
            }
        }