/// <summary>
        /// Sets the rest request parameters.
        /// </summary>
        /// <param name="registerInfoParam">Register info parameter.</param>
        private void SetRestRequestParams(ModiyPasswordParam modipwdParam)
        {
            if (!requestsubmitParams.ContainsKey("key"))
            {
                requestsubmitParams.Add("key", modipwdParam.Key);
            }
            else
            {
                requestsubmitParams ["key"] = modipwdParam.Key;
            }

            if (!requestsubmitParams.ContainsKey("eaction"))
            {
                requestsubmitParams.Add("eaction", modipwdParam.Eaction);
            }
            else
            {
                requestsubmitParams ["eaction"] = modipwdParam.Eaction;
            }

            if (!requestsubmitParams.ContainsKey("eUId"))
            {
                requestsubmitParams.Add("eUId", modipwdParam.Euid);
            }
            else
            {
                requestsubmitParams ["eUId"] = modipwdParam.Euid;
            }

            if (!requestsubmitParams.ContainsKey("ePassword"))
            {
                requestsubmitParams.Add("ePassword", modipwdParam.Epassword);
            }
            else
            {
                requestsubmitParams ["ePassword"] = modipwdParam.Epassword;
            }


            if (!requestsubmitParams.ContainsKey("eType"))
            {
                requestsubmitParams.Add("eType", modipwdParam.Etype);
            }
            else
            {
                requestsubmitParams ["eType"] = modipwdParam.Etype;
            }

            if (!requestsubmitParams.ContainsKey("md5"))
            {
                requestsubmitParams.Add("md5", modipwdParam.Md5);
            }
            else
            {
                requestsubmitParams ["md5"] = modipwdParam.Md5;
            }
        }
        /// <summary>
        /// Submit this instance.
        /// </summary>
        private void Submit()
        {
            passWord = edit_Pwd.Text;
            if (string.IsNullOrEmpty(passWord))
            {
                Toast.MakeText(this, "密码不能为空,请输入密码", ToastLength.Short).Show();
                return;
            }
            confirmPassWord = edit_ConfirmPwd.Text;
            if (string.IsNullOrEmpty(confirmPassWord))
            {
                Toast.MakeText(this, "确认密码不能为空,请输入确认密码", ToastLength.Short).Show();
                return;
            }
            if (passWord != confirmPassWord)
            {
                Toast.MakeText(this, "输入两次密码不一致,请检查", ToastLength.Short).Show();
                return;
            }
            if (!EldYoungUtil.IsPassWord(passWord))
            {
                Toast.MakeText(this, "请输入正确规范用户名6-20位,建议由字母、数字和符号两种以上组成", ToastLength.Short).Show();
                return;
            }
            ProgressDialogUtil.StartProgressDialog(this, "正在提交...");
            //检测网络连接
            if (!EldYoungUtil.IsConnected(this))
            {
                Toast.MakeText(this, "网络连接超时,请检测网路", ToastLength.Short).Show();
                ProgressDialogUtil.StopProgressDialog();
                return;
            }
            //调用restapi注册,将用户名、密码信息写
            var modipwdParam = new ModiyPasswordParam()
            {
                Type = sendType, Password = passWord
            };

            if (sendType == "FindPwd")
            {
                modipwdParam.UId = phoneNumber;
            }
            else
            {
                modipwdParam.UId = Global.MyInfo.UId;
            }

            //初始化参数
            SetRestRequestParams(modipwdParam);
            var restSharpRequestHelp = new RestSharpRequestHelp(modipwdParam.Url, requestsubmitParams);

            restSharpRequestHelp.ExcuteAsync((RestSharp.IRestResponse response) => {
                if (response.ResponseStatus == RestSharp.ResponseStatus.Completed && response.StatusCode == System.Net.HttpStatusCode.OK)
                {
                    //获取并解析返回resultJson获取安全码结果值
                    var result     = response.Content;
                    var setpwdJson = JsonConvert.DeserializeObject <SetPasswordJson>(result);
                    if (setpwdJson.statuscode == "1")
                    {
                        RunOnUiThread(() => {
                            Toast.MakeText(this, setpwdJson.message, ToastLength.Short).Show();
                            ProgressDialogUtil.StopProgressDialog();
                            var intent = new Intent(this, typeof(LoginActivity));
                            intent.SetFlags(ActivityFlags.ClearTask | ActivityFlags.NewTask);
                            StartActivity(intent);

                            this.Finish();
                        });
                    }
                    else
                    {
                        RunOnUiThread(() =>
                        {
                            Toast.MakeText(this, setpwdJson.message, ToastLength.Short).Show();
                            ProgressDialogUtil.StopProgressDialog();
                            return;
                        });
                    }
                }
                else if (response.ResponseStatus == RestSharp.ResponseStatus.TimedOut)
                {
                    RunOnUiThread(() =>
                    {
                        Toast.MakeText(this, "网络连接超时,请重试", ToastLength.Short).Show();
                        ProgressDialogUtil.StopProgressDialog();
                        return;
                    });
                }
                else
                {
                    RunOnUiThread(() =>
                    {
                        Toast.MakeText(this, response.StatusDescription, ToastLength.Short).Show();
                        ProgressDialogUtil.StopProgressDialog();
                        return;
                    });
                }
            });
        }