Beispiel #1
0
 private void Client_SocketError(object sender, Core.Communication.EventArguments.SocketErrorEventArgs e)
 {
     Log("Connection Error: " + e.SocketError);
     ConnectButton.BeginInvoke(new MethodInvoker(() => { ConnectButton.Enabled = true; }));
     DisconnectButton.BeginInvoke(new MethodInvoker(() => { DisconnectButton.Enabled = false; }));
 }
Beispiel #2
0
 private void Client_ServerClosedConnection(object sender, EventArgs e)
 {
     Log("Server Closed connection...");
     ConnectButton.BeginInvoke(new MethodInvoker(() => { ConnectButton.Enabled = true; }));
     DisconnectButton.BeginInvoke(new MethodInvoker(() => { DisconnectButton.Enabled = false; }));
 }
Beispiel #3
0
 private void Client_Connected(object sender, EventArgs e)
 {
     Log("connection to server established");
     ConnectButton.BeginInvoke(new MethodInvoker(() => { ConnectButton.Enabled = false; }));
     DisconnectButton.BeginInvoke(new MethodInvoker(() => { DisconnectButton.Enabled = true; }));
 }