protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.PasswardEdit); builder = new AlertDialog.Builder(this); code = FindViewById <EditText>(Resource.Id.SettingPswEditCode); psw = FindViewById <EditText>(Resource.Id.SettingEditPassword); confirm = FindViewById <EditText>(Resource.Id.SettingEditConfirm); submit = FindViewById <Button>(Resource.Id.SettingbtnSubmitPsw); sendCode = FindViewById <Button>(Resource.Id.SettingPswBtnSendcode); layout = FindViewById <LinearLayout>(Resource.Id.SettingPswLayout); PhoneNum = FindViewById <TextView>(Resource.Id.PasswordTextPhoneNum); ISharedPreferences LoginSP = GetSharedPreferences("LoginData", FileCreationMode.Private); PhoneNum.Text = LoginSP.GetString("PhoneNum", null); submit.Click += delegate { if ((code.Text == "") || (psw.Text == "") || (confirm.Text == "")) { Toast.MakeText(this, "请输入完整的修改信息!", ToastLength.Short).Show(); } else if ((psw.Text != confirm.Text)) { Toast.MakeText(this, "两次输入的密码不一致!", ToastLength.Short).Show(); } else if (code.Text != "123456") { Toast.MakeText(this, "验证码错误!", ToastLength.Short).Show(); } else { string res = PasswordEditData.Post("http://115.159.145.115/PasswordEdit.php", psw.Text, PhoneNum.Text); if (res == "Success") { builder.SetTitle("修改成功"); builder.SetMessage("请重新登录!"); builder.SetPositiveButton("确认", OK); builder.SetCancelable(false); builder.Show(); } } }; sendCode.Click += delegate { MyCount mc = new MyCount(this, 60000, 1000); mc.Start(); }; layout.Click += delegate { Android.Views.InputMethods.InputMethodManager imm = (Android.Views.InputMethods.InputMethodManager)GetSystemService(Context.InputMethodService); imm.HideSoftInputFromWindow(code.WindowToken, 0); imm.HideSoftInputFromWindow(psw.WindowToken, 0); imm.HideSoftInputFromWindow(confirm.WindowToken, 0); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById <ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById <TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById <TextView> (Resource.Id.tv_desc); tv_desc.Text = "提现"; tv_accountBalance = FindViewById <TextView> (Resource.Id.tv_accountBalance); tv_with_drawbank = FindViewById <TextView> (Resource.Id.tv_with_drawbank); tv_SendCodeStatusShow = FindViewById <TextView> (Resource.Id.tv_SendCodeStatusShow); edit_dealPwd = FindViewById <EditText> (Resource.Id.edit_dealPwd); edit_securityCode = FindViewById <EditText> (Resource.Id.edit_securityCode); edit_withdrawmoney = FindViewById <EditText> (Resource.Id.edit_withdrawmoney); btn_Add = FindViewById <Button> (Resource.Id.btn_Add); btn_Send = FindViewById <Button> (Resource.Id.btn_Send); rbtn_moreday = FindViewById <RadioButton> (Resource.Id.rbtn_moreday); rbtn_lesshour = FindViewById <RadioButton> (Resource.Id.rbtn_lesshour); rl_withdraw_bank = FindViewById <RelativeLayout> (Resource.Id.rl_withdraw_bank); //选择提现的银行卡 rl_withdraw_bank.Click += (sender, e) => { var intent = new Intent(this, typeof(ChooseWithDrawBankActivity)); var requestCode = 0; StartActivityForResult(intent, requestCode); }; //todo :赋值可用资金和提现银行卡 //初始化计时器,启动 mc = new MyCount(this, 60000, 1000); //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Enabled = false; SendCode(); }; //提现申请 btn_Add.Click += (sender, e) => { WithDraw(); }; //安全码验证 edit_securityCode.TextChanged += (sender, e) => { if (edit_securityCode.Text.Length > 0) { btn_Add.Enabled = true; } else { btn_Add.Enabled = false; } }; }
private void InitView() { //设置标题栏 var btn_header_back = FindViewById<Button> (Resource.Id.btn_header_back); btn_header_back.Click += (sender, e) => { this.Finish(); }; FindViewById<TextView> (Resource.Id.tv_header_title).Text = "填写短信验证码"; btn_Submit = FindViewById<Button> (Resource.Id.btn_Submit); btn_Send = FindViewById<Button> (Resource.Id.btn_Send); tv_PhoneShow = FindViewById<TextView> (Resource.Id.tv_PhoneShow); edit_SecurityCode = FindViewById<EditText> (Resource.Id.edit_SecurityCode); tv_SendCodeStatusShow = FindViewById<TextView>(Resource.Id.tv_SendCodeStatusShow); //取得上一页面传递过来的值 var bundle = Intent.Extras; //从bundle中获取值赋值显示 phoneNum= bundle.GetString("phoneNum"); nickName = bundle.GetString ("nickName"); passWord = bundle.GetString ("passWord"); securityCode = bundle.GetString("securityCode"); tv_PhoneShow.Text = phoneNum; //初始化计时器,启动 mc = new MyCount(this,60000,1000); mc.Start (); edit_SecurityCode.TextChanged+= (sender, e) => { if(edit_SecurityCode.Text.Length>0) { btn_Submit.Enabled = true; btn_Submit.SetBackgroundResource(Resource.Color.blue); } else { btn_Submit.Enabled =false; btn_Submit.SetBackgroundResource(Resource.Color.lightgray); } }; btn_Submit.Click += (sender, e) => { var inputCode = edit_SecurityCode.Text; if(string.IsNullOrEmpty(inputCode) || !EldYoungUtil.IsSecurityCode(inputCode)) { Toast.MakeText(this,"请输入接收到的手机验证码,且不能为空",ToastLength.Short).Show(); return ; } if(inputCode!=securityCode) { Toast.MakeText(this,"输入验证码不正确,请重新填写",ToastLength.Short).Show(); return; } Reister(); }; //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Clickable = false; btn_Send.SetBackgroundResource(Resource.Color.lightgray); btn_Send.SetTextColor(Resources.GetColor(Resource.Color.ingray)); SendSMS(phoneNum); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById<ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft,Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById<TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById<TextView> (Resource.Id.tv_desc); //取得上一页面传递过来的值包括是什么类型发送验证码(找回密码\修改支付密码\修改密码) var bundle = Intent.Extras; sendType = bundle.GetString ("SendType"); phoneNumber = bundle.GetString ("PhoneNumber"); tv_SendCodeStatusShow = FindViewById<TextView>(Resource.Id.tv_SendCodeStatusShow); edit_Phone = FindViewById<EditText> (Resource.Id.edit_Phone); edit_Phone.Text = phoneNumber; if (sendType == "FindPwd") { tv_desc.Text = "找回登录密码"; edit_Phone.Enabled = true; edit_Phone.Hint = "请输入手机号"; } else if (sendType == "ModifyPwd") { tv_desc.Text = "修改登录密码"; edit_Phone.Enabled = false; SetPhoneNumberShow (); } else if (sendType == "ModifyPayPwd") { tv_desc.Text = "设置支付密码"; edit_Phone.Enabled = false; SetPhoneNumberShow (); } edit_SecurityCode = FindViewById<EditText> (Resource.Id.edit_SecurityCode); btn_Send = FindViewById<Button> (Resource.Id.btn_Send); btn_Next = FindViewById<Button> (Resource.Id.btn_Next); //初始化计时器,启动 mc = new MyCount(this,60000,1000); //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Enabled = false; SendCode(); }; edit_SecurityCode.TextChanged+= (sender, e) => { if(edit_SecurityCode.Text.Length>0) { btn_Next.Enabled = true; } else { btn_Next.Enabled =false; } }; //下一步 btn_Next.Click += (sender, e) => { var inputCode = edit_SecurityCode.Text; if(string.IsNullOrEmpty(inputCode) || !EldYoungUtil.IsSecurityCode(inputCode)) { Toast.MakeText(this,"请输入接收到的手机验证码,且不能为空",ToastLength.Short).Show(); return ; } if(inputCode!=securityCode) { Toast.MakeText(this,"输入验证码不正确,请重新填写",ToastLength.Short).Show(); return; } var intent = new Intent(this,typeof(SetPasswordActivity)); var nextbundle = new Bundle(); nextbundle.PutString("SendType",sendType); if(sendType == "FindPwd") { nextbundle.PutString("PhoneNumber",phoneNumber); } intent.PutExtras(nextbundle); StartActivity(intent); if(sendType!="FindPwd") this.Finish(); ProgressDialogUtil.StopProgressDialog(); }; //拨打客服 var tv_customPhone = FindViewById<TextView>(Resource.Id.tv_customPhone); var customPhoneNum = tv_customPhone.Text; tv_customPhone.Click += (sender, e) => { Intent intent=new Intent(Intent.ActionCall,Android.Net.Uri.Parse ("tel:"+customPhoneNum)); StartActivity(intent); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById <ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById <TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById <TextView> (Resource.Id.tv_desc); //取得上一页面传递过来的值包括是什么类型发送验证码(找回密码\修改支付密码\修改密码) var bundle = Intent.Extras; sendType = bundle.GetString("SendType"); phoneNumber = bundle.GetString("PhoneNumber"); tv_SendCodeStatusShow = FindViewById <TextView>(Resource.Id.tv_SendCodeStatusShow); edit_Phone = FindViewById <EditText> (Resource.Id.edit_Phone); edit_Phone.Text = phoneNumber; if (sendType == "FindPwd") { tv_desc.Text = "找回登录密码"; edit_Phone.Enabled = true; edit_Phone.Hint = "请输入手机号"; } else if (sendType == "ModifyPwd") { tv_desc.Text = "修改登录密码"; edit_Phone.Enabled = false; SetPhoneNumberShow(); } else if (sendType == "ModifyPayPwd") { tv_desc.Text = "设置支付密码"; edit_Phone.Enabled = false; SetPhoneNumberShow(); } edit_SecurityCode = FindViewById <EditText> (Resource.Id.edit_SecurityCode); btn_Send = FindViewById <Button> (Resource.Id.btn_Send); btn_Next = FindViewById <Button> (Resource.Id.btn_Next); //初始化计时器,启动 mc = new MyCount(this, 60000, 1000); //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Enabled = false; SendCode(); }; edit_SecurityCode.TextChanged += (sender, e) => { if (edit_SecurityCode.Text.Length > 0) { btn_Next.Enabled = true; } else { btn_Next.Enabled = false; } }; //下一步 btn_Next.Click += (sender, e) => { var inputCode = edit_SecurityCode.Text; if (string.IsNullOrEmpty(inputCode) || !EldYoungUtil.IsSecurityCode(inputCode)) { Toast.MakeText(this, "请输入接收到的手机验证码,且不能为空", ToastLength.Short).Show(); return; } if (inputCode != securityCode) { Toast.MakeText(this, "输入验证码不正确,请重新填写", ToastLength.Short).Show(); return; } var intent = new Intent(this, typeof(SetPasswordActivity)); var nextbundle = new Bundle(); nextbundle.PutString("SendType", sendType); if (sendType == "FindPwd") { nextbundle.PutString("PhoneNumber", phoneNumber); } intent.PutExtras(nextbundle); StartActivity(intent); if (sendType != "FindPwd") { this.Finish(); } ProgressDialogUtil.StopProgressDialog(); }; //拨打客服 var tv_customPhone = FindViewById <TextView>(Resource.Id.tv_customPhone); var customPhoneNum = tv_customPhone.Text; tv_customPhone.Click += (sender, e) => { Intent intent = new Intent(Intent.ActionCall, Android.Net.Uri.Parse("tel:" + customPhoneNum)); StartActivity(intent); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById<ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft,Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById<TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById<TextView> (Resource.Id.tv_desc); tv_desc.Text = "银行卡信息"; edit_cardOwnerName = FindViewById<EditText> (Resource.Id.edit_cardOwnerName); edit_IdCardNo = FindViewById<EditText> (Resource.Id.edit_IdCardNo); edit_bankopenloc = FindViewById<EditText> (Resource.Id.edit_bankopenloc); edit_bankbranch = FindViewById<EditText> (Resource.Id.edit_bankbranch); edit_bankCardNo = FindViewById<EditText> (Resource.Id.edit_bankCardNo); edit_prePhoneNo = FindViewById<EditText> (Resource.Id.edit_prePhoneNo); edit_Code = FindViewById<EditText> (Resource.Id.edit_Code); img_choosebank = FindViewById<ImageView> (Resource.Id.img_choosebank); tv_SendCodeStatusShow = FindViewById<TextView> (Resource.Id.tv_SendCodeStatusShow); cb_defaut_bank = FindViewById<CheckBox> (Resource.Id.cb_defaut_bank); btn_Send = FindViewById<Button> (Resource.Id.btn_Send); btn_Add = FindViewById<Button> (Resource.Id.btn_Add); //选择银行卡 img_choosebank.Click += (sender, e) => { var intent = new Intent(this,typeof(ChooseBankTypeActivity)); var requestCode = 0; StartActivityForResult(intent,requestCode); }; //安全码验证 edit_Code.TextChanged += (sender, e) => { if(edit_Code.Text.Length>0) btn_Add.Enabled = true; else btn_Add.Enabled =false; }; //初始化计时器,启动 mc = new MyCount(this,60000,1000); //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Enabled = false; SendCode(); }; //添加银行卡信息 btn_Add.Click += (sender, e) => { AddBank(); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById<ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft,Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById<TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById<TextView> (Resource.Id.tv_desc); tv_desc.Text = "提现"; tv_accountBalance = FindViewById<TextView> (Resource.Id.tv_accountBalance); tv_with_drawbank = FindViewById<TextView> (Resource.Id.tv_with_drawbank); tv_SendCodeStatusShow = FindViewById<TextView> (Resource.Id.tv_SendCodeStatusShow); edit_dealPwd = FindViewById<EditText> (Resource.Id.edit_dealPwd); edit_securityCode = FindViewById<EditText> (Resource.Id.edit_securityCode); edit_withdrawmoney = FindViewById<EditText> (Resource.Id.edit_withdrawmoney); btn_Add = FindViewById<Button> (Resource.Id.btn_Add); btn_Send = FindViewById<Button> (Resource.Id.btn_Send); rbtn_moreday = FindViewById<RadioButton> (Resource.Id.rbtn_moreday); rbtn_lesshour = FindViewById<RadioButton> (Resource.Id.rbtn_lesshour); rl_withdraw_bank = FindViewById<RelativeLayout> (Resource.Id.rl_withdraw_bank); //选择提现的银行卡 rl_withdraw_bank.Click += (sender, e) => { var intent = new Intent(this,typeof(ChooseWithDrawBankActivity)); var requestCode = 0; StartActivityForResult(intent,requestCode); }; //todo :赋值可用资金和提现银行卡 //初始化计时器,启动 mc = new MyCount(this,60000,1000); //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Enabled = false; SendCode(); }; //提现申请 btn_Add.Click += (sender, e) => { WithDraw(); }; //安全码验证 edit_securityCode.TextChanged += (sender, e) => { if(edit_securityCode.Text.Length>0) btn_Add.Enabled = true; else btn_Add.Enabled =false; }; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.Register); register = FindViewById <Button>(Resource.Id.regBtnRegister); sendCode = FindViewById <Button>(Resource.Id.regBtnSendcode); number = FindViewById <EditText>(Resource.Id.regEditNumber); code = FindViewById <EditText>(Resource.Id.regEditCode); psw = FindViewById <EditText>(Resource.Id.regEditPassword); confirm = FindViewById <EditText>(Resource.Id.regEditConfirm); regLayout = FindViewById <LinearLayout>(Resource.Id.regLayout); title = FindViewById <ImageView>(Resource.Id.TitleReg); title.SetImageResource(Resource.Drawable.Cover); register.Click += delegate { if ((number.Text == "") || (code.Text == "") || (psw.Text == "") || (confirm.Text == "")) { Toast.MakeText(this, "请输入完整的注册信息!", ToastLength.Short).Show(); } else if (number.Text.Length != 11 || !Regex.IsMatch(number.Text, @"^[+-]?\d*$")) { Toast.MakeText(this, "手机号码格式不正确", ToastLength.Short).Show(); } else if ((psw.Text != confirm.Text)) { Toast.MakeText(this, "两次输入的密码不一致!", ToastLength.Short).Show(); } else if (code.Text != "123456") { Toast.MakeText(this, "验证码错误!", ToastLength.Short).Show(); } else { string res = RegisterData.Post("http://115.159.145.115/Register.php/", number.Text, psw.Text); if (res == "0") { Toast.MakeText(this, "该号码已被注册!", ToastLength.Short).Show(); } else if (res == "1") { Intent ActSuccess = new Intent(this, typeof(RegisterSuccess)); StartActivity(ActSuccess); } } }; sendCode.Click += delegate { MyCount mc = new MyCount(this, 60000, 1000); mc.Start(); }; regLayout.Click += delegate { Android.Views.InputMethods.InputMethodManager imm = (Android.Views.InputMethods.InputMethodManager)GetSystemService(Context.InputMethodService); imm.HideSoftInputFromWindow(number.WindowToken, 0); imm.HideSoftInputFromWindow(code.WindowToken, 0); imm.HideSoftInputFromWindow(psw.WindowToken, 0); imm.HideSoftInputFromWindow(confirm.WindowToken, 0); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById <ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById <TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById <TextView> (Resource.Id.tv_desc); tv_desc.Text = "填写短信验证码"; btn_Submit = FindViewById <Button> (Resource.Id.btn_Submit); btn_Send = FindViewById <Button> (Resource.Id.btn_Send); tv_PhoneShow = FindViewById <TextView> (Resource.Id.tv_PhoneShow); edit_SecurityCode = FindViewById <EditText> (Resource.Id.edit_SecurityCode); tv_SendCodeStatusShow = FindViewById <TextView>(Resource.Id.tv_SendCodeStatusShow); //取得上一页面传递过来的值 var bundle = Intent.Extras; //从bundle中获取值赋值显示 phoneNum = bundle.GetString("phoneNum"); nickName = bundle.GetString("nickName"); passWord = bundle.GetString("passWord"); securityCode = bundle.GetString("securityCode"); tv_PhoneShow.Text = phoneNum; //初始化计时器,启动 mc = new MyCount(this, 60000, 1000); mc.Start(); edit_SecurityCode.TextChanged += (sender, e) => { if (edit_SecurityCode.Text.Length > 0) { btn_Submit.Enabled = true; btn_Submit.SetBackgroundResource(Resource.Color.blue); } else { btn_Submit.Enabled = false; btn_Submit.SetBackgroundResource(Resource.Color.lightgray); } }; btn_Submit.Click += (sender, e) => { var inputCode = edit_SecurityCode.Text; if (string.IsNullOrEmpty(inputCode) || !EldYoungUtil.IsSecurityCode(inputCode)) { Toast.MakeText(this, "请输入接收到的手机验证码,且不能为空", ToastLength.Short).Show(); return; } if (inputCode != securityCode) { Toast.MakeText(this, "输入验证码不正确,请重新填写", ToastLength.Short).Show(); return; } Reister(); }; //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Clickable = false; btn_Send.SetBackgroundResource(Resource.Color.lightgray); btn_Send.SetTextColor(Resources.GetColor(Resource.Color.ingray)); SendSMS(phoneNum); }; }
private void InitView() { //设置标题栏 var img_header_back = FindViewById <ImageView> (Resource.Id.img_header_back); img_header_back.Click += (sender, e) => { this.Finish(); OverridePendingTransition(Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight); }; var tv_back = FindViewById <TextView> (Resource.Id.tv_back); tv_back.Text = "返回"; var tv_desc = FindViewById <TextView> (Resource.Id.tv_desc); tv_desc.Text = "银行卡信息"; edit_cardOwnerName = FindViewById <EditText> (Resource.Id.edit_cardOwnerName); edit_IdCardNo = FindViewById <EditText> (Resource.Id.edit_IdCardNo); edit_bankopenloc = FindViewById <EditText> (Resource.Id.edit_bankopenloc); edit_bankbranch = FindViewById <EditText> (Resource.Id.edit_bankbranch); edit_bankCardNo = FindViewById <EditText> (Resource.Id.edit_bankCardNo); edit_prePhoneNo = FindViewById <EditText> (Resource.Id.edit_prePhoneNo); edit_Code = FindViewById <EditText> (Resource.Id.edit_Code); img_choosebank = FindViewById <ImageView> (Resource.Id.img_choosebank); tv_SendCodeStatusShow = FindViewById <TextView> (Resource.Id.tv_SendCodeStatusShow); cb_defaut_bank = FindViewById <CheckBox> (Resource.Id.cb_defaut_bank); btn_Send = FindViewById <Button> (Resource.Id.btn_Send); btn_Add = FindViewById <Button> (Resource.Id.btn_Add); //选择银行卡 img_choosebank.Click += (sender, e) => { var intent = new Intent(this, typeof(ChooseBankTypeActivity)); var requestCode = 0; StartActivityForResult(intent, requestCode); }; //安全码验证 edit_Code.TextChanged += (sender, e) => { if (edit_Code.Text.Length > 0) { btn_Add.Enabled = true; } else { btn_Add.Enabled = false; } }; //初始化计时器,启动 mc = new MyCount(this, 60000, 1000); //发送验证码 btn_Send.Click += (sender, e) => { tv_SendCodeStatusShow.Visibility = ViewStates.Invisible; btn_Send.Enabled = false; SendCode(); }; //添加银行卡信息 btn_Add.Click += (sender, e) => { AddBank(); }; }