protected void ThumbClicked( ThumbEventArgs e) { if (ThumbClick != null) { ThumbClick(this, e); } }
protected void btnThumb_Click(object sender, EventArgs e) { //System.Diagnostics.Debug.WriteLine("btnThumb_Click"); ThumbEventArgs teaArgs; teaArgs = new ThumbEventArgs(this.AucID); ThumbClicked(teaArgs); }
/// <summary> /// METHOD: OnThumbnailEvent, makes a new ThumbEventArgs and calls event handler /// </summary> /// <param name="pImg">the image which is going to be display</param> private void OnThumbnailEvent(Image pImg) { // SET pictureBox image to the image passed in pictureBox.Image = pImg; // SET the pictureBox width and height to the // images width and height respectively pictureBox.Width = pictureBox.Image.Width; // ^^ pictureBox.Height = pictureBox.Image.Height; // DECLARE and instantiate a new ThumbEventArgs, passing in the // PictureBox as a parameter ThumbEventArgs args = new ThumbEventArgs(pictureBox); // CALL to OnThumbEvent handler, passing this and the local args in OnThumbEvent(this, args); }
void thmThumb_ThumbClick(object objSender, ThumbEventArgs teaArgs) { //???? this stopped working ????? Response.Redirect("AuctionDetail.aspx?aucID=" + teaArgs.AucID.ToString()); }