Exemplo n.º 1
0
 private void AppClient_CommandSend(object sender, TcpAppEventArgs e)
 {
     tcpAppLog.SelectionColor = System.Drawing.Color.Blue;
     tcpAppLog.AppendText("[TX] " + e.Message);
     tcpAppLog.SelectionStart = tcpAppLog.TextLength;
     tcpAppLog.ScrollToCaret();
 }
Exemplo n.º 2
0
 private void AppClient_ResponseReceived(object sender, TcpAppEventArgs e)
 {
     tcpAppLog.SelectionColor = System.Drawing.Color.DarkGreen;
     tcpAppLog.AppendText("[RX] " + e.Message);
     tcpAppLog.SelectionStart = tcpAppLog.TextLength;
     tcpAppLog.ScrollToCaret();
 }
Exemplo n.º 3
0
 private void Client_ResponseReceived(object sender, TcpAppEventArgs e)
 {
     if (e.Message.Contains(" ERR "))
     {
         AppendOutput(e.Message, Color.Red);
     }
     else
     {
         AppendOutput(e.Message, Color.Lime);
     }
 }
Exemplo n.º 4
0
 private void Client_CommandSend(object sender, TcpAppEventArgs e)
 {
     AppendOutput(e.Message + "\n", Color.Yellow);
 }