/// <summary> /// Handler called when an error occurs communicating with the server. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ServerErrorOccurred(object sender, ExceptionEventArgs e) { Guide.BeginShowMessageBox("There was a server error. Please try to connect again.", " ", new[] { "OK" }, 0, MessageBoxIcon.Error, ErrorDialogEnded, null); }
/// <summary> /// Called when there is an error contacting the game server. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Instance_Error(object sender, ExceptionEventArgs e) { isConnecting = false; error = "Server unavailable"; }