Exemple #1
0
        private bool validateAll()
        {
            bool namaPasien = Kenko.fieldRequired(txtNamaPasien.Text, lblNamaPasien);
            bool alamat     = Kenko.fieldRequired(txtAlamat.Text, lblAlamat);
            bool noTelp     = Kenko.fieldMin(txtNoTelp.Text, lblNoTelp, 11);
            bool tglLahir   = Kenko.dateRequired(txtTglLahir, lblTgl);
            bool jenkel     = Kenko.toggleRequired(lblJenkel, (bool)rdLaki.IsChecked, (bool)rdPerempuan.IsChecked);

            if (namaPasien && alamat && noTelp && tglLahir && jenkel)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
 private void txtAlamat_TextChanged(object sender, TextChangedEventArgs e)
 {
     Kenko.fieldRequired(txtAlamat.Text, lblAlamat);
 }
Exemple #3
0
 private void txtNamaPasien_TextChanged(object sender, TextChangedEventArgs e)
 {
     Kenko.fieldRequired(txtNamaPasien.Text, lblNamaPasien);
 }