private void backgroundWorkerBtnOK_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { button2.Enabled = true; Cursor = Cursors.Default; CEnum.Message_Body[,] resultMsgBody = (CEnum.Message_Body[, ])e.Result; //检测状态 if (resultMsgBody[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg) { MessageBox.Show(resultMsgBody[0, 0].oContent.ToString()); //Application.Exit(); return; } //int a=1; if (resultMsgBody[0, 0].oContent.ToString().Trim().ToUpper().Equals("SUCESS")) { m_ClientEvent.SaveInfo("USERPASSWORD", convertToMD5(this.newPwd.Text.Trim())); MessageBox.Show(config.ReadConfigValue("MGM", "UEP_Code_Succeed")); this.newPwd.Text = ""; this.oldPwd.Text = ""; this.validatePwd.Text = ""; } }