private void Resend_button_Click(object sender, EventArgs e)
        {
            signUpForm.verifyCode = rdCode.Next(100000, 999999).ToString();
            Thread newThread = new Thread
                               (
                delegate()
            {
                SupportUtility.SendConfirmEmailToCreateAccount(signUpForm.Email_textbox.Text, signUpForm.verifyCode);
            }
                               );

            newThread.Start();
            Resend_button.Enabled         = false;
            CountDownResend_label.Visible = true;
            Resend_timer.Enabled          = true;
        }
 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);
     }
 }