private void SignUp()
        {
            if (txtUserAccountName.Text == "")
            {
                MessageBox.Show("User Account Name should not be empty.");
                return;
            }

            if (txtPassword.Text == "")
            {
                MessageBox.Show("User Account Name should not be empty.");
                return;
            }

            bool anyError = false;

            if (!FormatChecking.UserName(txtUserAccountName.Text))
            {
                anyError = true;
            }
            if (!FormatChecking.Password(txtPassword.Text))
            {
                anyError = true;
            }

            if (anyError)
            {
                CleanUpTextBox();
                return;
            }

            if (DataBaseControl.MatchingAccountName_OfAllTable(txtUserAccountName.Text))
            {
                MessageBox.Show("Sorry, the User Account Name has been used.");
                return;
            }

            if (txtEmail.Text != "" && PlayerDataBaseControl.MatchingEmail(txtEmail.Text))
            {
                MessageBox.Show("Sorry, the Email has been used.");
                return;
            }



            PlayerDataBaseControl.Insert(txtUserAccountName.Text,
                                         txtPassword.Text,
                                         txtEmail.Text);


            userAccountName = txtUserAccountName.Text;
            userEmail       = txtEmail.Text;

            PlayerDataBaseControl.playerAccountName = userAccountName;
            PlayerDataBaseControl.Load_PlayerID_By_PlayerAccountName();

            user = User.Player;
            Close();
        }
        // Matching Account Name in All three Table
        public static bool MatchingEmail_OfAllTable(string target)
        {
            if (PlayerDataBaseControl.MatchingEmail(target))
            {
                return(true);
            }
            if (StaffDataBaseControl.MatchingEmail(target))
            {
                return(true);
            }
            if (CSMDataBaseControl.MatchingEmail(target))
            {
                return(true);
            }

            // Do not Exist in All Data Table
            return(false);
        }