Example #1
0
        private void btnReadIDCard_Click(object sender, EventArgs e)
        {
            try
            {
                lblMsg.Text      = string.Empty;
                pbxUserImg.Image = null;
                IdentityCardProviderImp IdCard    = new IdentityCardProviderImp();
                IdentityCardInfo        mCardInfo = IdCard.ReadIdCard(1, true);

                pbxUserImg.Image       = mCardInfo.IdImage;
                txtCustomerName.Text   = mCardInfo.Name;
                txtAddress.Text        = mCardInfo.Address;
                cboSex.SelectedItem    = mCardInfo.SexName;
                txtIDCard.Text         = mCardInfo.CardId;
                mCustomerInfo          = new CustomerModel();
                mCustomerInfo.Nation   = mCardInfo.NationName;
                mCustomerInfo.Birthday = mCardInfo.Birthday;

                //btnAddCustomer_Click(sender, new EventArgs());
            }
            catch (Exception err)
            {
                lblMsg.Text = err.Message;
            }
        }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (_Reader != null)
     {
         IdentityCardInfo id = _Reader.ReadInfo();
     }
 }