Ejemplo n.º 1
0
 void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
 {
     if (OnImageReceived != null)
     {
         ImageReceiveEventArgs eargs = new ImageReceiveEventArgs();
         using (MemoryStream ms = new MemoryStream(e.Result))
         {
             eargs.response = new Bitmap(ms);
         }
         OnImageReceived(eargs);
     }
     return;
 }
Ejemplo n.º 2
0
 void wao_OnImageReceived(ImageReceiveEventArgs e)
 {
     pictureBox1.Image = e.response;
 }
Ejemplo n.º 3
0
 void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
 {
     if (OnImageReceived != null)
         {
             ImageReceiveEventArgs eargs = new ImageReceiveEventArgs();
             using(MemoryStream ms = new MemoryStream(e.Result))
             {
                 eargs.response = new Bitmap(ms);
             }
             OnImageReceived(eargs);
         }
         return;
 }
Ejemplo n.º 4
0
 void wao_OnImageReceived(ImageReceiveEventArgs e)
 {
     pictureBox1.Image = e.response;
 }