示例#1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     _commandClient.Connect();
     _imageClient.Connect();
     _imageClient.ListenForScreenshots((byte[] imageData) =>
     {
         var image = (Image) new ImageConverter().ConvertFrom(imageData);
         ThreadSafeUpdatePictureBox(image);
     });
 }