Ejemplo n.º 1
0
 public static String MakeHttpErrorString(JwHttpConnectionError x, String lineTerminator)
 {
     StringBuilder sb = new StringBuilder();
     // kludge (err) - language
     sb.Append("There was a problem connecting to the server.");
     sb.Append(lineTerminator);
     sb.Append("host name: ");
     sb.Append(x.HostName);
     sb.Append(lineTerminator);
     sb.Append("request path: ");
     sb.Append(x.RequestPath);
     sb.Append(lineTerminator);
     sb.Append("port: ");
     sb.Append(x.Port);
     sb.Append(lineTerminator);
     return sb.ToString();
 }
Ejemplo n.º 2
0
 public void HandleHttpConnectionError(JwHttpConnectionError x)
 {
     StopThread();
     Engine.GetConnectionErrorEngine().ShowFirstPanel();
     /*
     StringBuilder sb = new StringBuilder();
     // kludge (err) - language
     sb.Append("There was a problem connecting to the server.\r\n");
     sb.Append("host name: ");
     sb.Append(x.HostName);
     sb.Append("\r\n");
     sb.Append("request path: ");
     sb.Append(x.RequestPath);
     sb.Append("\r\n");
     sb.Append("port: ");
     sb.Append(x.Port);
     sb.Append("\r\n");
     UpdateList("Transmit Failed.");
     UpdateList(sb.ToString());
     // kludge (err) - language
     VmApplication.Default.ShowNotification("There was a problem connecting to the server.");
     */
 }
Ejemplo n.º 3
0
 public static String MakeHttpErrorString(JwHttpConnectionError x)
 {
     return MakeHttpErrorString(x, "/r/n");
 }
Ejemplo n.º 4
0
 public static String MakeHttpErrorHtmlString(JwHttpConnectionError x)
 {
     return MakeHttpErrorString(x, "<BR>");
 }