/// <summary>
        /// 注册游戏帐号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void btnRegUser_Click(object sender, EventArgs e)
        {
            btnRegUser.Enabled = false;
            DateTime bitrh = DateTime.Parse(txtBirthday.Text);

            UserAddModel user = new UserAddModel
            {
                loginID = txtloginID.Text,
                Password = txtPassword.Text,
                Password2 = txtPassword2.Text,
                answer = txtanswer.Text,
                email = txtemail.Text.Replace("@", "%40"),
                question = txtquestion.Text,
                month = bitrh.Month,
                day = bitrh.ToString("dd"),
                year = bitrh.Year
            };
            
            lblRegistStatusMsg.Text = "正在注册....";
            string result =await HttpHelper.PostAsync<UserAddModel>(RedmoonUri.userRegist, user, RedmoonUri.userRegist);
            if (result.Contains("You're account has been created"))
            {
              
                lblRegistStatusMsg.Text = "帐号注册成功!";
            }
            else
            {
                lblRegistStatusMsg.Text = "您填写的信息有误,只能填写字母和数字"; 
            }
            btnRegUser.Enabled = true;
        }
        /// <summary>
        /// 注册游戏帐号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRegUser_Click(object sender, EventArgs e)
        {

            DateTime bitrh = DateTime.Parse(txtBirthday.Text);

            UserAddModel user = new UserAddModel
            {
                loginID = txtloginID.Text,
                Password = txtPassword.Text,
                Password2 = txtPassword2.Text,
                answer = txtanswer.Text,
                email = txtemail.Text.Replace("@", "%40"),
                question = txtquestion.Text,
                month = bitrh.Month,
                day = bitrh.ToString("dd"),
                year = bitrh.Year
            };
            //string name = "loginID=" + txtloginID.Text + "&Password="******"&Password2=" + txtPassword2.Text +
            //    "&month=" + bitrh.Month + "&day=" + bitrh.ToString("dd") + "&year=" + bitrh.Year + "&email=" + txtemail.Text +
            //    "&question=" + txtquestion.Text + "&answer=" + txtanswer.Text + "&Create=Create"; 
            //name = name.Replace("@", "%40");
            string result = HttpHelper.Post<UserAddModel>(RedmoonUri.userRegist, user, RedmoonUri.userRegist);
            if (result.Contains("You're account has been created"))
            {
                MessageBox.Show("帐号注册成功");
            }
            else
            {
                MessageBox.Show("您填写的信息有误,只能填写字母和数字");
            }
        }