Ejemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            MyKadVerifcationForm f = new MyKadVerifcationForm();

            f.ShowDialog();
            if (f.ProfileInfo == null)
            {
                return;
            }

            if (!f.ProfileInfo.IsVerified)
            {
                return;
            }

            txtFullName.Text = f.ProfileInfo.FullName;
            txtMyKad.Text    = f.ProfileInfo.IcNo;
            //txtDob.Text = f.ProfileInfo.DateOfBirth.ToString("dd/MM/yyyy");
            txtGender.Text = f.ProfileInfo.Gender;

            groupBox1.Enabled = true;
            groupBox2.Enabled = true;
            groupBox3.Enabled = true;

            btnSave.Enabled = true;
        }
        private void btnNew_Click(object sender, EventArgs e)
        {
            MyKadVerifcationForm f = new MyKadVerifcationForm();

            f.ShowDialog();
            if (f.ProfileInfo == null)
            {
                return;
            }

            if (!f.ProfileInfo.IsVerified)
            {
                return;
            }

            txtNameOfApplicant.Text = f.ProfileInfo.FullName;
            txtMyKad.Text           = f.ProfileInfo.IcNo;
            // txtDateOfBirth.Text = f.ProfileInfo.DateOfBirth.ToString("dd/MM/yyyy");
            if (f.ProfileInfo.Gender.ToLower() == "male")
            {
                chkMale.Checked   = true;
                chkFemale.Checked = false;
            }
            else
            {
                chkFemale.Checked = true;
                chkMale.Checked   = false;
            }
            //groupBox1.Enabled = true;
            //groupBox2.Enabled = true;
            //groupBox3.Enabled = true;

            btnSave.Enabled = true;
        }
Ejemplo n.º 3
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            MyKadVerifcationForm f = new MyKadVerifcationForm();

            f.ShowDialog();
            if (f.ProfileInfo == null)
            {
                return;
            }

            if (!f.ProfileInfo.IsVerified)
            {
                return;
            }

            btnNext.Enabled = true;
        }