Example #1
0
        private void frmAddUser_Load(object sender, EventArgs e)
        {
            Login.CaptchaImage captcha = new Login.CaptchaImage();
            captcha.RefreshCaptcha(pbxCaptcha);
            LoadUsersInfo();

            cbxSearch.SelectedIndex = 0;
        }
Example #2
0
        private void frmEditProfile_Load(object sender, EventArgs e)
        {
            Login.CaptchaImage captcha = new Login.CaptchaImage();
            captcha.RefreshCaptcha(pbxCaptcha);
            cmbSecurityQuestion.SelectedIndex = 0;

            SqlCommand sqlCmdEdit = new SqlCommand();

            sqlCmdEdit.CommandText = "select * from tblUsers where User_Name=@User_Name";
            sqlCmdEdit.Connection  = con;
            sqlCmdEdit.Parameters.Add("@User_Name", SqlDbType.NVarChar).Value = AccessLevel.UserName;

            SqlDataAdapter data = new SqlDataAdapter(sqlCmdEdit);
            DataTable      dt   = new DataTable();

            data.Fill(dt);
            txtEmail.Text            = dt.Rows[0][4].ToString();
            txtMobileNumber.Text     = dt.Rows[0][3].ToString();
            cmbSecurityQuestion.Text = dt.Rows[0][5].ToString();
        }
Example #3
0
 private void btnSpeech_Click(object sender, EventArgs e)
 {
     Login.CaptchaImage captcha = new Login.CaptchaImage();
     captcha.SpeechCaptcha();
 }
Example #4
0
 private void btnRefresh_Click(object sender, EventArgs e)
 {
     Login.CaptchaImage captcha = new Login.CaptchaImage();
     captcha.RefreshCaptcha(pbxCaptcha);
 }
 private void frmAddAdmin_Load(object sender, EventArgs e)
 {
     Login.CaptchaImage captcha = new Login.CaptchaImage();
     captcha.RefreshCaptcha(pbxCaptcha);
     cmbSecurityQuestion.SelectedIndex = 0;
 }
Example #6
0
 private void btnCaptchaSpeech_Click(object sender, EventArgs e)
 {
     Login.CaptchaImage oCaptchaImage = new Login.CaptchaImage();
     oCaptchaImage.SpeechCaptcha();
 }
 public void RefreshCaptcha(PictureBox pbxCaptcha)
 {
     Login.CaptchaImage captchaImage = new Login.CaptchaImage(RandomNumber(), 140, 60);
     pbxCaptcha.Image = captchaImage.Image;
     Captcha          = captchaImage.Text;
 }