delegate void delegateShowImage(Image im);
private void ShowImage(Image ttt)
{
if (pictureBox1.InvokeRequired)
{
delegateShowImage d = new delegateShowImage(ShowImage);
this.Invoke(d, new object[] { ttt });
}
else
{
pictureBox1.Image = ttt;
}
}
public Action<Image> ShowCurImage;
wl.ShowCurImage = ShowImage;