Exemple #1
0
 private void ConnectionListener_ConnectionAccepted(object sender, ConnectionAcceptedEventArgs e)
 {
     if (e.Error != null)
     {
         mainWindow.WriteLine(e.Error);
         return;
     }
     else
     {
         var image = ReceiveImageData(e.ClientConnection);
         imageQueue.Enqueue(image);
     }
 }
 private void OnConnectionAccepted(ConnectionAcceptedEventArgs e)
 {
     if (ConnectionAccepted != null)
     {
         ConnectionAccepted(this, e);
     }
 }