110,561
社区成员
发帖
与我相关
我的任务
分享
delegate void DrawCompletedHandler(Image img);
event DrawCompletedHandler drawcompleted;
//初始化的时候进行绑定
this.drawcompleted += new DrawCompletedHandler(MyStockMain_drawcompleted);
void MyStockMain_drawcompleted(Image img)
{
this.picStock.Image = img;
}
//下载图片
void DownLoadPic()
{
//下载的图片完成之后,触发事件,helper.GetImg为自己写的得到图片image的函数,你可以替换成你自己的
Image stockImg = helper.GetImg(ImgIn.ImgUrl);
if (drawcompleted != null) this.drawcompleted(map);
}