Inheritance: System.EventArgs
Ejemplo n.º 1
0
 public void ChildRequestImage(ImageBinder binder, HtmlContainer htmlCont, object reqFrom, bool _sync)
 {
     if (this.requestImage != null)
     {
         ImageRequestEventArgs resReq = new ImageRequestEventArgs(binder);
         resReq.requestBy = reqFrom;
         requestImage(this, resReq);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// On image load in renderer set the image by event async.
 /// </summary>
 void HandleImageRequest(object sender, ImageRequestEventArgs e)
 {
     PixelFarm.Drawing.Image img = TryLoadResourceImage(e.ImagSource);
     if (img != null)
     {
         e.SetResultImage(img);
     }
     else
     {
         //no image found
         e.ImageBinder.State = ImageBinderState.Error;
     }
 }