private void SendCode_button_Click(object sender, EventArgs e)
        {
            if (SupportUtility.IsExistEmail(Email_textbox.Text))
            {
                verifyCode = rdcode.Next(100000, 999999).ToString();

                Thread newThread = new Thread(
                    delegate()
                {
                    SupportUtility.SendConfirmEmailToResetPassword(Email_textbox.Text, verifyCode);
                });
                newThread.Start();
                //SupportUtility.SendConfirmEmailToResetPassword(Email_textbox.Text, verifyCode);
                SendCode_button.Enabled       = false;
                Email_textbox.Enabled         = false;
                ResetPass_button.Enabled      = true;
                ResendCountdown_timer.Enabled = true;
                CountdownResend_label.Visible = true;
                AcceptButton = ResetPass_button;
            }
            else
            {
                MessageBox.Show("Tài khoản không tồn tại", "Thộng báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 private void SignUp_button_Click(object sender, EventArgs e)
 {
     if (Email_textbox.Text != "" && Name_textbox.Text != "" && Pass_textbox.Text != "" && ConfirmPass_textbox.Text != "")
     {
         if (!SupportUtility.IsExistEmail(Email_textbox.Text))
         {
             if (!SupportUtility.IsExistAccount(Name_textbox.Text))
             {
                 if (ConfirmPass_textbox.Text == Pass_textbox.Text)
                 {
                     verifyCode = rdCode.Next(100000, 999999).ToString();
                     try
                     {
                         SupportUtility.SendConfirmEmailToCreateAccount(Email_textbox.Text, verifyCode);
                         confirmNewAccount = new ConfirmNewAccount(this);
                         confirmNewAccount.Show();
                         this.Hide();
                     }
                     catch (Exception)
                     {
                         MessageBox.Show("Không thể gửi mail", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                     }
                 }
                 else
                 {
                     MessageBox.Show("Mật khẩu không trùng khớp", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 }
             }
             else
             {
                 MessageBox.Show("Tên người dùng đã được sử dụng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             }
         }
         else
         {
             MessageBox.Show("Email đã được sử dụng", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
     else
     {
         MessageBox.Show("Vui lòng nhập đủ thông tin", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }