internal void OnScreenShotComplete(object sender, ScreenShotEventArgs result) { if (screenShotComplete != null) { screenShotComplete(this, result); } }
protected void grabzIt_ScreenShotComplete(object sender, ScreenShotEventArgs result) { if (!string.IsNullOrEmpty(result.Message)) { lblMessage.Text = result.Message; lblMessage.Style.Clear(); lblMessage.CssClass = "error"; } GrabzItFile file = grabzItClient.GetResult(result.ID); //Ensure that the application has the correct rights for this directory. file.Save(Server.MapPath("~/results/" + result.Filename)); }