Exemple #1
0
        private void loadEmailByNIKListToListView()
        {
            lvwListAllEmail.Items.Clear();

            List <Informasi_Email> daftarIem = iemDAO.GetByNIK(txtNIK.Text);

            foreach (Informasi_Email email in daftarIem)
            {
                FillToListView(email);
            }
        }
Exemple #2
0
        private void fillTextBox()
        {
            daftarEmail = iemDAO.GetByNIK(txtNIK.Text);

            if (daftarEmail.Count > 0)
            {
                Informasi_Email iem = daftarEmail[0];

                txtAlamatEmailSekarang.Text = iem.Alamat_Email;
                txtAlamatEmailBaru.Text     = "";
                cmbKepemilikanEmail.Text    = iem.Kepemilikan_Email;

                txtAlamatEmailBaru.Focus();
            }
            else
            {
                txtAlamatEmailSekarang.Clear();
                txtAlamatEmailBaru.Clear();
                cmbKepemilikanEmail.Text = null;

                lblTambahEmail.Focus();
            }
        }