private void simpleButton1_Click(object sender, EventArgs e) { if (ValidNewPass()) { string _oldPass = this.te_oldPass.EditValue.ToString(); string _newPass = this.te_newPass.EditValue.ToString(); IAuthorize _authService = LoginConfig.GetAuthorizeInterface(); if (_authService.ChangePassWord(SessionClass.CurrentSinoUser.LoginName, _oldPass, _newPass, "")) { XtraMessageBox.Show("修改口令成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.DialogResult = DialogResult.OK; this.Close(); } else { XtraMessageBox.Show("修改口令失败!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.DialogResult = DialogResult.OK; this.Close(); } } }