Esempio n. 1
0
        private void btnRead_Click(object sender, EventArgs e)
        {
            try
            {
                btnVerify.Enabled = false;
                txtName.Text      = "";
                txtMyKad.Text     = "";

                ReadingMyKadForm rmf = new ReadingMyKadForm();
                rmf.Show();
                _mp.UserProfile = _mp.MyKad.ReadFromMyKad();
                rmf.Close();
                if (_mp.UserProfile == null)
                {
                    MessageBox.Show("Read failed. Please check your reader or card.");
                    return;
                }
                txtName.Text  = _mp.UserProfile.FullName;
                txtMyKad.Text = _mp.UserProfile.IcNo;
                btnVerify_Click(this, e);
                btnVerify.Enabled = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void btnRead_Click(object sender, EventArgs e)
        {
            btnVerify.Enabled = false;

            ReadingMyKadForm rmf = new ReadingMyKadForm();

            rmf.Show();
            ProfileInfo = ReadFromMyKad();
            UpdateUI();
            rmf.Close();
            btnVerify.Enabled = true;
        }
        private void btnRead_Click(object sender, EventArgs e)
        {
            btnVerify.Enabled = false;

            ReadingMyKadForm rmf = new ReadingMyKadForm();
            rmf.Show();
            ProfileInfo = ReadFromMyKad();
            UpdateUI();
            rmf.Close();
            btnVerify.Enabled = true;
        }
Esempio n. 4
0
        private void btnRead_Click(object sender, EventArgs e)
        {
            try
            {
                btnVerify.Enabled = false;
                txtName.Text = "";
                txtMyKad.Text = "";

                ReadingMyKadForm rmf = new ReadingMyKadForm();
                rmf.Show();
                _mp.UserProfile = _mp.MyKad.ReadFromMyKad();
                rmf.Close();
                if (_mp.UserProfile == null)
                {
                    MessageBox.Show("Read failed. Please check your reader or card.");
                    return;
                }
                txtName.Text = _mp.UserProfile.FullName;
                txtMyKad.Text = _mp.UserProfile.IcNo;
                btnVerify_Click(this, e);
                btnVerify.Enabled = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }