コード例 #1
0
 private void SetPicture(Image image)
 {
     if (pictureBox.InvokeRequired)
     {
         SetPictureDelegate d = new SetPictureDelegate(SetPicture);
         this.Invoke(d, image);
     }
     else
     {
         pictureBox.Image = image;
     }
 }
コード例 #2
0
 private void SetPicture(Image image)
 {
     if (pictureBox.InvokeRequired)
     {
         SetPictureDelegate d = new SetPictureDelegate(SetPicture);
         this.Invoke(d, image);
     }
     else
     {
         pictureBox.Image = image;
     }
 }