void ws_ChangePasswordCompleted(object sender, LiveSupport.OperatorConsole.LiveChatWS.ChangePasswordCompletedEventArgs e) { if (e.Error != null) { Trace.TraceError("ws_ChangePasswordCompleted Error: " + e.Error.Message); //TODO: 通知窗体 return; } if (AsyncCallCompleted != null) { AsyncCallCompleted(this, new AsyncCallCompletedEventArg(e)); } }
void OperaterServiceAgent_AsyncCallCompleted(object sender, AsyncCallCompletedEventArg e) { if (e.Result.GetType() == typeof(LiveSupport.OperatorConsole.LiveChatWS.ChangePasswordCompletedEventArgs)) { LiveSupport.OperatorConsole.LiveChatWS.ChangePasswordCompletedEventArgs arg = e.Result as LiveSupport.OperatorConsole.LiveChatWS.ChangePasswordCompletedEventArgs; if (arg.Error == null) { if (arg.Result == 0) { MessageBox.Show("更改成功!!\r\n\r\n 新密码为" + this.txtNewPassword.Text); this.Close(); } else { this.Text = "修改失败!"; } } else { this.Text = "网络中断,请稍候..."; } } }