예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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";
 }