| | |
| | | { |
| | | if (string.IsNullOrEmpty(txtNewPwd.Text.Trim())) |
| | | { |
| | | MsgHelper.Warning("新密码不能为空!"); |
| | | MsgHelper.ShowError("新密码不能为空!"); |
| | | txtNewPwd.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(txtNewPwd2.Text.Trim())) |
| | | { |
| | | MsgHelper.Warning("密码不能为空!"); |
| | | MsgHelper.ShowError("密码不能为空!"); |
| | | txtNewPwd2.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if (txtNewPwd.Text != txtNewPwd2.Text) |
| | | { |
| | | MsgHelper.Warning("你的两次密码不一致!"); |
| | | MsgHelper.ShowError("你的两次密码不一致!"); |
| | | txtNewPwd2.Focus(); |
| | | return; |
| | | } |
| | |
| | | catch (Exception ex) |
| | | { |
| | | DialogResult = DialogResult.Cancel; |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |