Exemple #1
0
        private void txtUsername_Validating(object sender, CancelEventArgs e)
        {
            string errorMsg = "Username ";

            if (!BUS_Validation.ValidTextFormat(txtUsername.Text, ref errorMsg))
            {
                e.Cancel = true;
                this.errorProvider1.SetError(txtUsername, errorMsg);
            }
        }
Exemple #2
0
        private void txtPassword_Validating_1(object sender, CancelEventArgs e)
        {
            string errorMsg = "Password ";

            if (!BUS_Validation.ValidTextFormat(txtPassword.Text, ref errorMsg))
            {
                e.Cancel = true;
                this.errorProvider2.SetError(txtPassword, errorMsg);
            }
        }
Exemple #3
0
        private void rtxtText_Validating(object sender, CancelEventArgs e)
        {
            string errMsg = "Text";

            if (!BUS_Validation.ValidText(rtxtText.Text, ref errMsg))
            {
                e.Cancel = true;
                this.errorProvider3.SetError(rtxtText, errMsg);
            }
        }
Exemple #4
0
        private void txtTime_Validating(object sender, CancelEventArgs e)
        {
            string errMsg = "Time";

            if (!BUS_Validation.ValidTime(txtTime.Text, ref errMsg))
            {
                e.Cancel = true;
                this.errorProvider2.SetError(txtTime, errMsg);
            }
        }
Exemple #5
0
        private void txtPasswordConfirm_Validating_1(object sender, CancelEventArgs e)
        {
            string errorMsg = "";

            if (!BUS_Validation.ValidConfirmPassword(txtPassword.Text, txtPasswordConfirm.Text, ref errorMsg))
            {
                e.Cancel = true;
                this.errorProvider3.SetError(txtPasswordConfirm, errorMsg);
            }
        }
Exemple #6
0
        private void txtEmail_Validating_1(object sender, CancelEventArgs e)
        {
            string errorMsg = "";

            if (!BUS_Validation.ValidEmailFormat(txtEmail.Text, ref errorMsg))
            {
                e.Cancel = true;
                this.errorProvider4.SetError(txtEmail, errorMsg);
            }
        }